PR Checks / Frontend Typecheck + Tests (pull_request) Successful in 1m6s
PR Checks / Backend Smoke (pull_request) Successful in 6s
PR Checks / Build Backend (no push) (pull_request) Successful in 10s
PR Checks / Build Frontend (no push) (pull_request) Successful in 48s
PR Checks / Build Pipeline (no push) (pull_request) Successful in 10s
PR Checks / AI Code Review (Claude) (pull_request) Successful in 52s
The 'add school' modal passed no title to Modal, so its header held only the close button — shoved to the far left by justify-content:space-between in an otherwise-empty bar — while the real title was rendered separately inside the content. Pass the title to Modal so the header reads title (left) + close (right), and drop the duplicate in-content heading. Also: the mobile full-width result button targeted a dead .addButton selector (the button never had that class), so it rendered inconsistently — give the button a real module class and full width on mobile, tighten the stacked cards, and give the bottom sheet a stable min-height so its empty state isn't a tiny stub. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0146VHeLAWjDVE2B5uU67jCB
176 lines
3.2 KiB
CSS
176 lines
3.2 KiB
CSS
.modalContent {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.warning {
|
|
background: var(--accent-gold-bg);
|
|
border: 1px solid var(--accent-gold, #c9a227);
|
|
color: var(--text-primary, #1a1612);
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.searchContainer {
|
|
position: relative;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.searchInput {
|
|
width: 100%;
|
|
padding: 0.875rem 1rem;
|
|
font-size: 1rem;
|
|
border: 2px solid var(--border-color, #e5dfd5);
|
|
border-radius: 8px;
|
|
background: var(--bg-card, white);
|
|
color: var(--text-primary, #1a1612);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.searchInput::placeholder {
|
|
color: var(--text-muted, #8a847a);
|
|
}
|
|
|
|
.searchInput:focus {
|
|
outline: none;
|
|
border-color: var(--accent-coral, #e07256);
|
|
box-shadow: 0 0 0 3px var(--accent-coral-bg);
|
|
}
|
|
|
|
.searchSpinner {
|
|
position: absolute;
|
|
right: 1rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
border: 2px solid rgba(224, 114, 86, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: var(--accent-coral, #e07256);
|
|
animation: spin 0.6s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: translateY(-50%) rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.results {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Scrollbar styles */
|
|
.results::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.results::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary, #f3ede4);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.results::-webkit-scrollbar-thumb {
|
|
background: var(--border-color, #e5dfd5);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.results::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted, #8a847a);
|
|
}
|
|
|
|
.resultItem {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
background: var(--bg-secondary, #f3ede4);
|
|
border: 1px solid var(--border-color, #e5dfd5);
|
|
border-radius: 10px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.resultItem:hover {
|
|
background: var(--bg-card, white);
|
|
border-color: var(--accent-coral, #e07256);
|
|
box-shadow: var(--shadow-soft, 0 2px 8px rgba(26, 22, 18, 0.06));
|
|
}
|
|
|
|
.schoolInfo {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.schoolName {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1a1612);
|
|
margin-bottom: 0.25rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.resultButton {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.schoolMeta {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary, #5c564d);
|
|
}
|
|
|
|
.schoolMeta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
|
|
.noResults {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--text-secondary, #5c564d);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
.hint {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--text-muted, #8a847a);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.modalContent {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Compact stacked card: name + meta, then a full-width action so the tap
|
|
target is obvious and the card doesn't waste vertical space. */
|
|
.resultItem {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.625rem;
|
|
padding: 0.875rem;
|
|
}
|
|
|
|
.resultButton {
|
|
width: 100%;
|
|
}
|
|
|
|
.schoolMeta {
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem 1rem;
|
|
}
|
|
}
|