🔎 no text below 11px except avatar initials
Browse files at this commit41a3aba8ac5d4da1072ea0738b9c006679a57449Parent: e81f14e- style
- 🔎 no text below 11px except avatar initials
31 changed files +75 -75
- src/components/courses/course-card.tsx +2 -2
- src/components/dashboard/command-search-field.tsx +1 -1
- src/components/exams/answer-sheet-view.tsx +3 -3
- src/components/exams/bank-question-picker.tsx +2 -2
- src/components/exams/question-form.tsx +1 -1
- src/components/insights/insight-detail.tsx +3 -3
- src/components/insights/insight-module-views.tsx +1 -1
- src/components/layout/command-palette.tsx +5 -5
- src/components/layout/mobile-nav-sheet.tsx +2 -2
- src/components/layout/mobile-tab-bar.tsx +3 -3
- src/components/layout/notification-center.tsx +2 -2
- src/components/layout/shell-messages-button.tsx +1 -1
- src/components/layout/side-nav.tsx +4 -4
- src/components/layout/sidebar-account.tsx +1 -1
- src/components/marks/marks-report-view.tsx +1 -1
- src/components/messages/gmail-mail-detail.tsx +1 -1
- src/components/messages/gmail-mail-row.tsx +2 -2
- src/components/notes/note-files-panel.tsx +1 -1
- src/components/ui/chart-heatmap.tsx +4 -4
- src/components/ui/chart-line.tsx +8 -8
- src/components/users/user-avatar.tsx +1 -1
- src/pages/appointments-page.tsx +2 -2
- src/pages/calendar-page.tsx +8 -8
- src/pages/course-detail-page.tsx +4 -4
- src/pages/dashboard-page.tsx +2 -2
- src/pages/instance-detail-page.tsx +5 -5
- src/pages/messages-page.tsx +1 -1
- src/pages/question-detail-page.tsx +1 -1
- src/pages/questions-page.tsx +1 -1
- src/pages/settings-page.tsx +1 -1
- src/pages/whiteboard-page.tsx +1 -1
src/components/courses/course-card.tsxmodified+2 -2
| @@ -47,8 +47,8 @@ export function CourseCard(props: { | |||
| 47 | <h2 class="truncate text-base font-semibold tracking-tight">{props.course.title}</h2> | 47 | <h2 class="truncate text-base font-semibold tracking-tight">{props.course.title}</h2> |
| 48 | </div> | 48 | </div> |
| 49 | <div class="mt-1 flex flex-wrap items-center gap-1.5"> | 49 | <div class="mt-1 flex flex-wrap items-center gap-1.5"> |
| 50 | - <Badge variant="outline" class="rounded-md text-[10px] font-medium">{props.labels.kind}</Badge> | 50 | + <Badge variant="outline" class="rounded-md text-[11px] font-medium">{props.labels.kind}</Badge> |
| 51 | - <Show when={props.enrolled}><Badge variant="secondary" class="rounded-md text-[10px]">{props.labels.enrolled}</Badge></Show> | 51 | + <Show when={props.enrolled}><Badge variant="secondary" class="rounded-md text-[11px]">{props.labels.enrolled}</Badge></Show> |
| 52 | </div> | 52 | </div> |
| 53 | </div> | 53 | </div> |
| 54 | <IconChevronRight class="mt-1 h-4 w-4 shrink-0 text-text-subtle transition-transform group-hover:translate-x-0.5 group-hover:text-text-default" /> | 54 | <IconChevronRight class="mt-1 h-4 w-4 shrink-0 text-text-subtle transition-transform group-hover:translate-x-0.5 group-hover:text-text-default" /> |
src/components/dashboard/command-search-field.tsxmodified+1 -1
| @@ -24,7 +24,7 @@ export function CommandSearchField(props: { class?: string }) { | |||
| 24 | > | 24 | > |
| 25 | <IconSearch class="h-4 w-4 shrink-0 text-text-subtle group-hover:text-primary-text" /> | 25 | <IconSearch class="h-4 w-4 shrink-0 text-text-subtle group-hover:text-primary-text" /> |
| 26 | <span class="min-w-0 flex-1 truncate text-text-placeholder">{placeholder()}</span> | 26 | <span class="min-w-0 flex-1 truncate text-text-placeholder">{placeholder()}</span> |
| 27 | - <kbd class="hidden shrink-0 rounded-md border border-border/80 bg-background/80 px-1.5 py-0.5 font-mono text-[10px] font-semibold text-muted-foreground sm:inline-block"> | 27 | + <kbd class="hidden shrink-0 rounded-md border border-border/80 bg-background/80 px-1.5 py-0.5 font-mono text-[11px] font-semibold text-muted-foreground sm:inline-block"> |
| 28 | Ctrl/Cmd K | 28 | Ctrl/Cmd K |
| 29 | </kbd> | 29 | </kbd> |
| 30 | </button> | 30 | </button> |
src/components/exams/answer-sheet-view.tsxmodified+3 -3
| @@ -211,7 +211,7 @@ export function AnswerSheetView(props: { examId: string; userId: string; mode?: | |||
| 211 | </Badge> | 211 | </Badge> |
| 212 | </Show> | 212 | </Show> |
| 213 | <Show when={row.answer?.is_correct == null && row.question.kind === "text"}> | 213 | <Show when={row.answer?.is_correct == null && row.question.kind === "text"}> |
| 214 | - <Badge variant="outline" class="text-[10px]">{t("questions.kind.text")}</Badge> | 214 | + <Badge variant="outline" class="text-[11px]">{t("questions.kind.text")}</Badge> |
| 215 | </Show> | 215 | </Show> |
| 216 | <Show when={row.answer?.is_correct == null && row.question.kind !== "text"}> | 216 | <Show when={row.answer?.is_correct == null && row.question.kind !== "text"}> |
| 217 | <span class="text-xs text-muted-foreground">—</span> | 217 | <span class="text-xs text-muted-foreground">—</span> |
| @@ -263,10 +263,10 @@ export function AnswerSheetView(props: { examId: string; userId: string; mode?: | |||
| 263 | </span> | 263 | </span> |
| 264 | <span>{choice.text}</span> | 264 | <span>{choice.text}</span> |
| 265 | <Show when={choice.id === row.answer?.selected && choice.id !== row.question.correct}> | 265 | <Show when={choice.id === row.answer?.selected && choice.id !== row.question.correct}> |
| 266 | - <Badge variant="destructive" class="ml-auto text-[10px]">✗</Badge> | 266 | + <Badge variant="destructive" class="ml-auto text-[11px]">✗</Badge> |
| 267 | </Show> | 267 | </Show> |
| 268 | {choice.id === row.question.correct && ( | 268 | {choice.id === row.question.correct && ( |
| 269 | - <Badge variant="outline" class="ml-auto border-success/50 bg-success/10 text-success-text text-[10px]"> | 269 | + <Badge variant="outline" class="ml-auto border-success/50 bg-success/10 text-success-text text-[11px]"> |
| 270 | <IconCheck class="h-3 w-3" /> | 270 | <IconCheck class="h-3 w-3" /> |
| 271 | </Badge> | 271 | </Badge> |
| 272 | )} | 272 | )} |
src/components/exams/bank-question-picker.tsxmodified+2 -2
| @@ -95,10 +95,10 @@ export function BankQuestionPicker(props: { | |||
| 95 | > | 95 | > |
| 96 | <p class="line-clamp-2 text-sm font-medium">{template.text}</p> | 96 | <p class="line-clamp-2 text-sm font-medium">{template.text}</p> |
| 97 | <div class="mt-1 flex flex-wrap items-center gap-1.5"> | 97 | <div class="mt-1 flex flex-wrap items-center gap-1.5"> |
| 98 | - <Badge variant="outline" class="text-[10px]"> | 98 | + <Badge variant="outline" class="text-[11px]"> |
| 99 | {template.kind === "choice" ? t("questions.kind.choice") : t("questions.kind.text")} | 99 | {template.kind === "choice" ? t("questions.kind.choice") : t("questions.kind.text")} |
| 100 | </Badge> | 100 | </Badge> |
| 101 | - <Badge variant="secondary" class="font-mono text-[10px]"> | 101 | + <Badge variant="secondary" class="font-mono text-[11px]"> |
| 102 | {template.points} {t("questions.points")} | 102 | {template.points} {t("questions.points")} |
| 103 | </Badge> | 103 | </Badge> |
| 104 | </div> | 104 | </div> |
src/components/exams/question-form.tsxmodified+1 -1
| @@ -430,7 +430,7 @@ export function QuestionForm(props: { | |||
| 430 | class="sr-only" | 430 | class="sr-only" |
| 431 | onChange={(event) => setChoiceImage(row().id, event.currentTarget.files?.[0] ?? null)} | 431 | onChange={(event) => setChoiceImage(row().id, event.currentTarget.files?.[0] ?? null)} |
| 432 | /> | 432 | /> |
| 433 | - <label for={`choice-image-${index}`} class="flex cursor-pointer items-center gap-1 rounded-md border border-dashed bg-muted/20 px-2 py-0.5 text-[10px] font-medium text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"> | 433 | + <label for={`choice-image-${index}`} class="flex cursor-pointer items-center gap-1 rounded-md border border-dashed bg-muted/20 px-2 py-0.5 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground"> |
| 434 | <IconFileImage class="h-3 w-3" /> | 434 | <IconFileImage class="h-3 w-3" /> |
| 435 | {row().image?.name ?? t("questions.choiceImage")} | 435 | {row().image?.name ?? t("questions.choiceImage")} |
| 436 | </label> | 436 | </label> |
src/components/insights/insight-detail.tsxmodified+3 -3
| @@ -267,17 +267,17 @@ export function InsightDetail(props: { insight: StudentInsight; mode?: "full" | | |||
| 267 | <div class="grid grid-cols-3 gap-2 text-center"> | 267 | <div class="grid grid-cols-3 gap-2 text-center"> |
| 268 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> | 268 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> |
| 269 | <p class="font-mono text-sm font-semibold">{segment.n_correct}/{segment.n_answers}</p> | 269 | <p class="font-mono text-sm font-semibold">{segment.n_correct}/{segment.n_answers}</p> |
| 270 | - <p class="text-[10px] text-muted-foreground">{tx("insights.answers")}</p> | 270 | + <p class="text-[11px] text-muted-foreground">{tx("insights.answers")}</p> |
| 271 | </div> | 271 | </div> |
| 272 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> | 272 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> |
| 273 | <p class="font-mono text-sm font-semibold">{percent(segment.overall_accuracy)}</p> | 273 | <p class="font-mono text-sm font-semibold">{percent(segment.overall_accuracy)}</p> |
| 274 | - <p class="text-[10px] text-muted-foreground">{tx("insights.overall")}</p> | 274 | + <p class="text-[11px] text-muted-foreground">{tx("insights.overall")}</p> |
| 275 | </div> | 275 | </div> |
| 276 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> | 276 | <div class="rounded-lg bg-surface-overlay px-2 py-2"> |
| 277 | <p class={cn("font-mono text-sm font-semibold", segment.contrast < 0 ? "text-destructive-text" : "text-success-text")}> | 277 | <p class={cn("font-mono text-sm font-semibold", segment.contrast < 0 ? "text-destructive-text" : "text-success-text")}> |
| 278 | {segment.contrast > 0 ? "+" : ""}{percent(segment.contrast)} | 278 | {segment.contrast > 0 ? "+" : ""}{percent(segment.contrast)} |
| 279 | </p> | 279 | </p> |
| 280 | - <p class="text-[10px] text-muted-foreground">{tx("insights.contrast")}</p> | 280 | + <p class="text-[11px] text-muted-foreground">{tx("insights.contrast")}</p> |
| 281 | </div> | 281 | </div> |
| 282 | </div> | 282 | </div> |
| 283 | </article> | 283 | </article> |
src/components/insights/insight-module-views.tsxmodified+1 -1
| @@ -112,7 +112,7 @@ function StatCell(props: { label: string; value: string | null }) { | |||
| 112 | <p class="font-mono text-sm font-semibold text-foreground"> | 112 | <p class="font-mono text-sm font-semibold text-foreground"> |
| 113 | {props.value ?? detailText("detail.value.missing")} | 113 | {props.value ?? detailText("detail.value.missing")} |
| 114 | </p> | 114 | </p> |
| 115 | - <p class="mt-0.5 text-[10px] text-muted-foreground">{props.label}</p> | 115 | + <p class="mt-0.5 text-[11px] text-muted-foreground">{props.label}</p> |
| 116 | </div> | 116 | </div> |
| 117 | ); | 117 | ); |
| 118 | } | 118 | } |
src/components/layout/command-palette.tsxmodified+5 -5
| @@ -509,7 +509,7 @@ export function CommandPalette(props: CommandPaletteProps) { | |||
| 509 | <div class="flex items-center gap-2"> | 509 | <div class="flex items-center gap-2"> |
| 510 | <span class="truncate text-sm font-medium">{item.title}</span> | 510 | <span class="truncate text-sm font-medium">{item.title}</span> |
| 511 | <Show when={item.roleBadge}> | 511 | <Show when={item.roleBadge}> |
| 512 | - <span class="rounded-full bg-secondary border border-border px-2 py-0.2 text-[10px] font-semibold text-muted-foreground"> | 512 | + <span class="rounded-full bg-secondary border border-border px-2 py-0.2 text-[11px] font-semibold text-muted-foreground"> |
| 513 | {item.roleBadge} | 513 | {item.roleBadge} |
| 514 | </span> | 514 | </span> |
| 515 | </Show> | 515 | </Show> |
| @@ -520,7 +520,7 @@ export function CommandPalette(props: CommandPaletteProps) { | |||
| 520 | </div> | 520 | </div> |
| 521 | 521 | ||
| 522 | <Show when={item.shortcut}> | 522 | <Show when={item.shortcut}> |
| 523 | - <kbd class="hidden shrink-0 rounded-md border border-border/80 bg-muted/60 px-2 py-0.5 font-mono text-[10px] font-semibold text-muted-foreground sm:inline-block"> | 523 | + <kbd class="hidden shrink-0 rounded-md border border-border/80 bg-muted/60 px-2 py-0.5 font-mono text-[11px] font-semibold text-muted-foreground sm:inline-block"> |
| 524 | {item.shortcut} | 524 | {item.shortcut} |
| 525 | </kbd> | 525 | </kbd> |
| 526 | </Show> | 526 | </Show> |
| @@ -539,11 +539,11 @@ export function CommandPalette(props: CommandPaletteProps) { | |||
| 539 | <div class="hidden items-center justify-between border-t border-border/60 bg-muted/30 px-4 py-2 text-xs text-muted-foreground sm:flex"> | 539 | <div class="hidden items-center justify-between border-t border-border/60 bg-muted/30 px-4 py-2 text-xs text-muted-foreground sm:flex"> |
| 540 | <span class="truncate">{t("command.shortcutHint")}</span> | 540 | <span class="truncate">{t("command.shortcutHint")}</span> |
| 541 | <div class="flex items-center gap-2 font-mono shrink-0"> | 541 | <div class="flex items-center gap-2 font-mono shrink-0"> |
| 542 | - <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[10px] font-semibold">↑↓</kbd> | 542 | + <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[11px] font-semibold">↑↓</kbd> |
| 543 | <span>{t("command.key.navigate")}</span> | 543 | <span>{t("command.key.navigate")}</span> |
| 544 | - <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[10px] font-semibold">↵</kbd> | 544 | + <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[11px] font-semibold">↵</kbd> |
| 545 | <span>{t("command.key.select")}</span> | 545 | <span>{t("command.key.select")}</span> |
| 546 | - <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[10px] font-semibold">Esc</kbd> | 546 | + <kbd class="rounded border border-border bg-background px-1.5 py-0.5 text-[11px] font-semibold">Esc</kbd> |
| 547 | <span>{t("command.key.close")}</span> | 547 | <span>{t("command.key.close")}</span> |
| 548 | </div> | 548 | </div> |
| 549 | </div> | 549 | </div> |
src/components/layout/mobile-nav-sheet.tsxmodified+2 -2
| @@ -198,12 +198,12 @@ export function MobileNavSheet(props: { | |||
| 198 | {t(item.labelKey)} | 198 | {t(item.labelKey)} |
| 199 | </span> | 199 | </span> |
| 200 | <Show when={item.soon}> | 200 | <Show when={item.soon}> |
| 201 | - <span class="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-muted-foreground"> | 201 | + <span class="shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"> |
| 202 | {t("nav.soon")} | 202 | {t("nav.soon")} |
| 203 | </span> | 203 | </span> |
| 204 | </Show> | 204 | </Show> |
| 205 | <Show when={badgeFor(item) > 0}> | 205 | <Show when={badgeFor(item) > 0}> |
| 206 | - <span class="flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[10px] font-bold text-white"> | 206 | + <span class="flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[11px] font-bold text-white"> |
| 207 | {badgeFor(item) > 99 ? "99+" : badgeFor(item)} | 207 | {badgeFor(item) > 99 ? "99+" : badgeFor(item)} |
| 208 | </span> | 208 | </span> |
| 209 | </Show> | 209 | </Show> |
src/components/layout/mobile-tab-bar.tsxmodified+3 -3
| @@ -32,7 +32,7 @@ export function MobileTabBar(props: { onMenu: () => void; onSearch: () => void } | |||
| 32 | to={item.to} | 32 | to={item.to} |
| 33 | aria-current={active() ? "page" : undefined} | 33 | aria-current={active() ? "page" : undefined} |
| 34 | class={cn( | 34 | class={cn( |
| 35 | - "flex h-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium", | 35 | + "flex h-full flex-col items-center justify-center gap-1 px-1 text-[11px] font-medium", |
| 36 | active() ? "text-foreground" : "text-muted-foreground", | 36 | active() ? "text-foreground" : "text-muted-foreground", |
| 37 | )} | 37 | )} |
| 38 | > | 38 | > |
| @@ -49,7 +49,7 @@ export function MobileTabBar(props: { onMenu: () => void; onSearch: () => void } | |||
| 49 | <button | 49 | <button |
| 50 | type="button" | 50 | type="button" |
| 51 | aria-label={t("common.search")} | 51 | aria-label={t("common.search")} |
| 52 | - class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground" | 52 | + class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[11px] font-medium text-muted-foreground" |
| 53 | onClick={() => props.onSearch()} | 53 | onClick={() => props.onSearch()} |
| 54 | > | 54 | > |
| 55 | <span class="flex h-7 w-10 items-center justify-center"> | 55 | <span class="flex h-7 w-10 items-center justify-center"> |
| @@ -63,7 +63,7 @@ export function MobileTabBar(props: { onMenu: () => void; onSearch: () => void } | |||
| 63 | id="mobile-menu-trigger" | 63 | id="mobile-menu-trigger" |
| 64 | type="button" | 64 | type="button" |
| 65 | aria-label={t("nav.menu")} | 65 | aria-label={t("nav.menu")} |
| 66 | - class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground" | 66 | + class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[11px] font-medium text-muted-foreground" |
| 67 | onClick={() => props.onMenu()} | 67 | onClick={() => props.onMenu()} |
| 68 | > | 68 | > |
| 69 | <span class="flex h-7 w-10 items-center justify-center"> | 69 | <span class="flex h-7 w-10 items-center justify-center"> |
src/components/layout/notification-center.tsxmodified+2 -2
| @@ -211,7 +211,7 @@ export function NotificationCenter() { | |||
| 211 | > | 211 | > |
| 212 | <IconBell class="h-4 w-4" /> | 212 | <IconBell class="h-4 w-4" /> |
| 213 | <Show when={unreadCount() > 0}> | 213 | <Show when={unreadCount() > 0}> |
| 214 | - <span class="absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-bold text-destructive-foreground ring-2 ring-background"> | 214 | + <span class="absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-[11px] font-bold text-destructive-foreground ring-2 ring-background"> |
| 215 | {unreadCount() > 9 ? "9+" : unreadCount()} | 215 | {unreadCount() > 9 ? "9+" : unreadCount()} |
| 216 | </span> | 216 | </span> |
| 217 | </Show> | 217 | </Show> |
| @@ -222,7 +222,7 @@ export function NotificationCenter() { | |||
| 222 | <div class="flex items-center gap-2"> | 222 | <div class="flex items-center gap-2"> |
| 223 | <h3 class="text-sm font-semibold text-text-strong">{t("notifications.title")}</h3> | 223 | <h3 class="text-sm font-semibold text-text-strong">{t("notifications.title")}</h3> |
| 224 | <Show when={unreadCount() > 0}> | 224 | <Show when={unreadCount() > 0}> |
| 225 | - <span class="rounded-full bg-primary/15 px-2 py-0.5 font-mono text-[10px] font-bold text-primary-text"> | 225 | + <span class="rounded-full bg-primary/15 px-2 py-0.5 font-mono text-[11px] font-bold text-primary-text"> |
| 226 | {unreadCount()} | 226 | {unreadCount()} |
| 227 | </span> | 227 | </span> |
| 228 | </Show> | 228 | </Show> |
src/components/layout/shell-messages-button.tsxmodified+1 -1
| @@ -19,7 +19,7 @@ export function ShellMessagesButton() { | |||
| 19 | <IconMessage class="h-4 w-4" /> | 19 | <IconMessage class="h-4 w-4" /> |
| 20 | <Show when={unread() > 0}> | 20 | <Show when={unread() > 0}> |
| 21 | <span | 21 | <span |
| 22 | - class="absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-bold text-destructive-foreground ring-2 ring-background" | 22 | + class="absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-[11px] font-bold text-destructive-foreground ring-2 ring-background" |
| 23 | aria-hidden="true" | 23 | aria-hidden="true" |
| 24 | > | 24 | > |
| 25 | {unread() > 9 ? "9+" : unread()} | 25 | {unread() > 9 ? "9+" : unread()} |
src/components/layout/side-nav.tsxmodified+4 -4
| @@ -123,12 +123,12 @@ export function SideNav(props: { | |||
| 123 | <item.Icon class="h-4 w-4 shrink-0" /> | 123 | <item.Icon class="h-4 w-4 shrink-0" /> |
| 124 | <span class="truncate">{t(item.labelKey)}</span> | 124 | <span class="truncate">{t(item.labelKey)}</span> |
| 125 | <Show when={item.soon}> | 125 | <Show when={item.soon}> |
| 126 | - <span class="ml-auto shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-muted-foreground"> | 126 | + <span class="ml-auto shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"> |
| 127 | {t("nav.soon")} | 127 | {t("nav.soon")} |
| 128 | </span> | 128 | </span> |
| 129 | </Show> | 129 | </Show> |
| 130 | <Show when={badgeFor(item) > 0}> | 130 | <Show when={badgeFor(item) > 0}> |
| 131 | - <span class="ml-auto flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[10px] font-bold text-white"> | 131 | + <span class="ml-auto flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[11px] font-bold text-white"> |
| 132 | {unread() > 9 ? "9+" : unread()} | 132 | {unread() > 9 ? "9+" : unread()} |
| 133 | </span> | 133 | </span> |
| 134 | </Show> | 134 | </Show> |
| @@ -210,12 +210,12 @@ export function SideNav(props: { | |||
| 210 | <item.Icon class="h-4 w-4 shrink-0" /> | 210 | <item.Icon class="h-4 w-4 shrink-0" /> |
| 211 | <span>{t(item.labelKey)}</span> | 211 | <span>{t(item.labelKey)}</span> |
| 212 | <Show when={item.soon}> | 212 | <Show when={item.soon}> |
| 213 | - <span class="ml-auto shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-muted-foreground"> | 213 | + <span class="ml-auto shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"> |
| 214 | {t("nav.soon")} | 214 | {t("nav.soon")} |
| 215 | </span> | 215 | </span> |
| 216 | </Show> | 216 | </Show> |
| 217 | <Show when={badgeFor(item) > 0}> | 217 | <Show when={badgeFor(item) > 0}> |
| 218 | - <span class="ml-auto flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[10px] font-bold text-white"> | 218 | + <span class="ml-auto flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-500 px-1.5 text-[11px] font-bold text-white"> |
| 219 | {unread() > 9 ? "9+" : unread()} | 219 | {unread() > 9 ? "9+" : unread()} |
| 220 | </span> | 220 | </span> |
| 221 | </Show> | 221 | </Show> |
src/components/layout/sidebar-account.tsxmodified+1 -1
| @@ -99,7 +99,7 @@ export function SidebarAccount(props: { | |||
| 99 | <Show when={!props.collapsed}> | 99 | <Show when={!props.collapsed}> |
| 100 | <span class="min-w-0 flex-1"> | 100 | <span class="min-w-0 flex-1"> |
| 101 | <span class="block truncate text-[13px] font-semibold leading-4 2xl:text-sm">{name()}</span> | 101 | <span class="block truncate text-[13px] font-semibold leading-4 2xl:text-sm">{name()}</span> |
| 102 | - <span class="block truncate text-[10px] font-medium text-muted-foreground dark:text-white/55 2xl:text-[11px]"> | 102 | + <span class="block truncate text-[11px] font-medium text-muted-foreground dark:text-white/55 2xl:text-[11px]"> |
| 103 | {t(`role.${u().role}` as MessageKey)} | 103 | {t(`role.${u().role}` as MessageKey)} |
| 104 | </span> | 104 | </span> |
| 105 | </span> | 105 | </span> |
src/components/marks/marks-report-view.tsxmodified+1 -1
| @@ -189,7 +189,7 @@ export function MarksReportView(props: { report: MarksReport; compact?: boolean | |||
| 189 | </Link> | 189 | </Link> |
| 190 | </div> | 190 | </div> |
| 191 | <div class="text-right"> | 191 | <div class="text-right"> |
| 192 | - <p class="text-[10px] font-medium uppercase tracking-wider text-muted-foreground">{t("marks.courseAvg")}</p> | 192 | + <p class="text-[11px] font-medium uppercase tracking-wider text-muted-foreground">{t("marks.courseAvg")}</p> |
| 193 | <p class="mt-0.5 text-xl font-semibold tabular-nums">{markWithGrade(block.average, block.average_grade)}</p> | 193 | <p class="mt-0.5 text-xl font-semibold tabular-nums">{markWithGrade(block.average, block.average_grade)}</p> |
| 194 | </div> | 194 | </div> |
| 195 | </div> | 195 | </div> |
src/components/messages/gmail-mail-detail.tsxmodified+1 -1
| @@ -250,7 +250,7 @@ export function GmailMailDetail(props: GmailMailDetailProps) { | |||
| 250 | {peerName()} | 250 | {peerName()} |
| 251 | </span> | 251 | </span> |
| 252 | <Show when={role()}> | 252 | <Show when={role()}> |
| 253 | - <Badge variant="outline" class="text-[9px] font-mono uppercase"> | 253 | + <Badge variant="outline" class="text-[11px] font-mono uppercase"> |
| 254 | {t(`role.${role()}` as any)} | 254 | {t(`role.${role()}` as any)} |
| 255 | </Badge> | 255 | </Badge> |
| 256 | </Show> | 256 | </Show> |
src/components/messages/gmail-mail-row.tsxmodified+2 -2
| @@ -66,7 +66,7 @@ export function GmailMailRow(props: GmailMailRowProps) { | |||
| 66 | {isSent() ? `${t("messages.to")}${peerName()}` : peerName()} | 66 | {isSent() ? `${t("messages.to")}${peerName()}` : peerName()} |
| 67 | </span> | 67 | </span> |
| 68 | <Show when={role()}> | 68 | <Show when={role()}> |
| 69 | - <span class="shrink-0 text-[9px] uppercase font-mono px-1 py-0.2 rounded bg-muted text-muted-foreground border border-border-hairline"> | 69 | + <span class="shrink-0 text-[11px] uppercase font-mono px-1 py-0.2 rounded bg-muted text-muted-foreground border border-border-hairline"> |
| 70 | {t(`role.${role()}` as any)} | 70 | {t(`role.${role()}` as any)} |
| 71 | </span> | 71 | </span> |
| 72 | </Show> | 72 | </Show> |
| @@ -94,7 +94,7 @@ export function GmailMailRow(props: GmailMailRowProps) { | |||
| 94 | 94 | ||
| 95 | {/* Optional Tag Label */} | 95 | {/* Optional Tag Label */} |
| 96 | <Show when={props.message.label}> | 96 | <Show when={props.message.label}> |
| 97 | - <Badge variant="outline" class="hidden h-4 shrink-0 px-1.5 py-0 text-[9px] font-medium sm:inline-flex"> | 97 | + <Badge variant="outline" class="hidden h-4 shrink-0 px-1.5 py-0 text-[11px] font-medium sm:inline-flex"> |
| 98 | {props.message.label} | 98 | {props.message.label} |
| 99 | </Badge> | 99 | </Badge> |
| 100 | </Show> | 100 | </Show> |
src/components/notes/note-files-panel.tsxmodified+1 -1
| @@ -203,7 +203,7 @@ export function NoteFilesPanel(props: { | |||
| 203 | {meta.icon} | 203 | {meta.icon} |
| 204 | </span> | 204 | </span> |
| 205 | </button> | 205 | </button> |
| 206 | - <span class={cn("absolute left-2 top-2 rounded px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide", meta.class)}> | 206 | + <span class={cn("absolute left-2 top-2 rounded px-1.5 py-0.5 text-[11px] font-semibold uppercase tracking-wide", meta.class)}> |
| 207 | {meta.label} | 207 | {meta.label} |
| 208 | </span> | 208 | </span> |
| 209 | <div class="absolute right-2 top-2 z-10 rounded-xl border border-border/80 bg-card/90 shadow-md dark:border-white/15 dark:bg-card/95"> | 209 | <div class="absolute right-2 top-2 z-10 rounded-xl border border-border/80 bg-card/90 shadow-md dark:border-white/15 dark:bg-card/95"> |
src/components/ui/chart-heatmap.tsxmodified+4 -4
| @@ -164,14 +164,14 @@ export const ChartHeatmap: Component<ChartHeatmapProps> = (props) => { | |||
| 164 | <span aria-hidden="true" /> | 164 | <span aria-hidden="true" /> |
| 165 | <For each={monthLabels()}> | 165 | <For each={monthLabels()}> |
| 166 | {(label) => ( | 166 | {(label) => ( |
| 167 | - <span class="text-[9px] leading-none text-muted-foreground">{label}</span> | 167 | + <span class="text-[11px] leading-none text-muted-foreground">{label}</span> |
| 168 | )} | 168 | )} |
| 169 | </For> | 169 | </For> |
| 170 | 170 | ||
| 171 | <For each={weekdayLabels()}> | 171 | <For each={weekdayLabels()}> |
| 172 | {(weekdayLabel, dayIndex) => ( | 172 | {(weekdayLabel, dayIndex) => ( |
| 173 | <> | 173 | <> |
| 174 | - <span class="pr-1 text-right text-[9px] leading-none text-muted-foreground"> | 174 | + <span class="pr-1 text-right text-[11px] leading-none text-muted-foreground"> |
| 175 | {weekdayLabel} | 175 | {weekdayLabel} |
| 176 | </span> | 176 | </span> |
| 177 | <For each={columns()}> | 177 | <For each={columns()}> |
| @@ -218,11 +218,11 @@ export const ChartHeatmap: Component<ChartHeatmapProps> = (props) => { | |||
| 218 | <p class="text-[11px] text-muted-foreground">{props.footer}</p> | 218 | <p class="text-[11px] text-muted-foreground">{props.footer}</p> |
| 219 | </Show> | 219 | </Show> |
| 220 | <div class="ml-auto flex items-center gap-1.5"> | 220 | <div class="ml-auto flex items-center gap-1.5"> |
| 221 | - <span class="text-[10px] text-muted-foreground">{t("dashboard.heatmapLess")}</span> | 221 | + <span class="text-[11px] text-muted-foreground">{t("dashboard.heatmapLess")}</span> |
| 222 | <For each={levelClasses}> | 222 | <For each={levelClasses}> |
| 223 | {(levelClass) => <span class={cn("h-3 w-3 rounded-[3px]", levelClass)} />} | 223 | {(levelClass) => <span class={cn("h-3 w-3 rounded-[3px]", levelClass)} />} |
| 224 | </For> | 224 | </For> |
| 225 | - <span class="text-[10px] text-muted-foreground">{t("dashboard.heatmapMore")}</span> | 225 | + <span class="text-[11px] text-muted-foreground">{t("dashboard.heatmapMore")}</span> |
| 226 | </div> | 226 | </div> |
| 227 | </div> | 227 | </div> |
| 228 | </Show> | 228 | </Show> |
src/components/ui/chart-line.tsxmodified+8 -8
| @@ -90,19 +90,19 @@ export const ChartLine: Component<ChartLineProps> = (props) => { | |||
| 90 | <div class="space-y-3"> | 90 | <div class="space-y-3"> |
| 91 | <dl class="grid grid-cols-2 gap-2 sm:grid-cols-4"> | 91 | <dl class="grid grid-cols-2 gap-2 sm:grid-cols-4"> |
| 92 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> | 92 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> |
| 93 | - <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartExamCount")}</dt> | 93 | + <dt class="text-[11px] text-muted-foreground">{t("dashboard.chartExamCount")}</dt> |
| 94 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{props.items.length}</dd> | 94 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{props.items.length}</dd> |
| 95 | </div> | 95 | </div> |
| 96 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> | 96 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> |
| 97 | - <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartLatest")}</dt> | 97 | + <dt class="text-[11px] text-muted-foreground">{t("dashboard.chartLatest")}</dt> |
| 98 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().latest.formattedValue ?? stats().latest.value}</dd> | 98 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().latest.formattedValue ?? stats().latest.value}</dd> |
| 99 | </div> | 99 | </div> |
| 100 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> | 100 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> |
| 101 | - <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartAverage")}</dt> | 101 | + <dt class="text-[11px] text-muted-foreground">{t("dashboard.chartAverage")}</dt> |
| 102 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().average.toFixed(1)}</dd> | 102 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().average.toFixed(1)}</dd> |
| 103 | </div> | 103 | </div> |
| 104 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> | 104 | <div class="rounded-lg bg-surface-overlay px-2.5 py-2"> |
| 105 | - <dt class="text-[10px] text-muted-foreground">{t("dashboard.chartRange")}</dt> | 105 | + <dt class="text-[11px] text-muted-foreground">{t("dashboard.chartRange")}</dt> |
| 106 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().minimum.toFixed(1)}–{stats().maximum.toFixed(1)}</dd> | 106 | <dd class="mt-0.5 font-mono text-sm font-semibold tabular-nums">{stats().minimum.toFixed(1)}–{stats().maximum.toFixed(1)}</dd> |
| 107 | </div> | 107 | </div> |
| 108 | </dl> | 108 | </dl> |
| @@ -120,7 +120,7 @@ export const ChartLine: Component<ChartLineProps> = (props) => { | |||
| 120 | return ( | 120 | return ( |
| 121 | <g> | 121 | <g> |
| 122 | <line x1={PADDING.left} x2={PADDING.left + plotWidth} y1={y()} y2={y()} class="stroke-border/70" stroke-width="1" /> | 122 | <line x1={PADDING.left} x2={PADDING.left + plotWidth} y1={y()} y2={y()} class="stroke-border/70" stroke-width="1" /> |
| 123 | - <text x={PADDING.left - 8} y={y() + 3} text-anchor="end" class="fill-muted-foreground text-[9px]">{tick}</text> | 123 | + <text x={PADDING.left - 8} y={y() + 3} text-anchor="end" class="fill-muted-foreground text-[11px]">{tick}</text> |
| 124 | </g> | 124 | </g> |
| 125 | ); | 125 | ); |
| 126 | }} | 126 | }} |
| @@ -137,7 +137,7 @@ export const ChartLine: Component<ChartLineProps> = (props) => { | |||
| 137 | stroke-width="1" | 137 | stroke-width="1" |
| 138 | stroke-dasharray="4 4" | 138 | stroke-dasharray="4 4" |
| 139 | /> | 139 | /> |
| 140 | - <text x={PADDING.left + 5} y={averageY() - 5} class="fill-muted-foreground text-[9px]"> | 140 | + <text x={PADDING.left + 5} y={averageY() - 5} class="fill-muted-foreground text-[11px]"> |
| 141 | {t("dashboard.chartAverage")}: {stats().average.toFixed(1)} | 141 | {t("dashboard.chartAverage")}: {stats().average.toFixed(1)} |
| 142 | </text> | 142 | </text> |
| 143 | <polyline points={points()} fill="none" class="stroke-primary" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /> | 143 | <polyline points={points()} fill="none" class="stroke-primary" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" /> |
| @@ -178,7 +178,7 @@ export const ChartLine: Component<ChartLineProps> = (props) => { | |||
| 178 | <div class="h-full rounded-md border border-border bg-popover px-3 py-2 text-popover-foreground shadow-lg"> | 178 | <div class="h-full rounded-md border border-border bg-popover px-3 py-2 text-popover-foreground shadow-lg"> |
| 179 | <p class="truncate text-[11px] font-semibold" title={item.label}>{item.label}</p> | 179 | <p class="truncate text-[11px] font-semibold" title={item.label}>{item.label}</p> |
| 180 | <div class="mt-1 flex items-end justify-between gap-3"> | 180 | <div class="mt-1 flex items-end justify-between gap-3"> |
| 181 | - <span class="truncate text-[10px] text-muted-foreground">{item.caption}</span> | 181 | + <span class="truncate text-[11px] text-muted-foreground">{item.caption}</span> |
| 182 | <span class="font-mono text-base font-bold leading-none tabular-nums">{item.formattedValue ?? item.value}</span> | 182 | <span class="font-mono text-base font-bold leading-none tabular-nums">{item.formattedValue ?? item.value}</span> |
| 183 | </div> | 183 | </div> |
| 184 | </div> | 184 | </div> |
| @@ -196,7 +196,7 @@ export const ChartLine: Component<ChartLineProps> = (props) => { | |||
| 196 | x={point().x} | 196 | x={point().x} |
| 197 | y={VIEW_HEIGHT - 10} | 197 | y={VIEW_HEIGHT - 10} |
| 198 | text-anchor={index === 0 ? "start" : index === props.items.length - 1 ? "end" : "middle"} | 198 | text-anchor={index === 0 ? "start" : index === props.items.length - 1 ? "end" : "middle"} |
| 199 | - class="fill-muted-foreground text-[9px]" | 199 | + class="fill-muted-foreground text-[11px]" |
| 200 | > | 200 | > |
| 201 | {props.items[index].caption ?? props.items[index].label} | 201 | {props.items[index].caption ?? props.items[index].label} |
| 202 | </text> | 202 | </text> |
src/components/users/user-avatar.tsxmodified+1 -1
| @@ -5,7 +5,7 @@ import { cn } from "@/lib/cn"; | |||
| 5 | import { personInitials } from "@/lib/person"; | 5 | import { personInitials } from "@/lib/person"; |
| 6 | 6 | ||
| 7 | const SIZES = { | 7 | const SIZES = { |
| 8 | - xs: "h-6 w-6 text-[9px]", | 8 | + xs: "h-6 w-6 text-[10px]", |
| 9 | sm: "h-8 w-8 text-[11px]", | 9 | sm: "h-8 w-8 text-[11px]", |
| 10 | md: "h-10 w-10 text-sm", | 10 | md: "h-10 w-10 text-sm", |
| 11 | lg: "h-16 w-16 text-lg", | 11 | lg: "h-16 w-16 text-lg", |
src/pages/appointments-page.tsxmodified+2 -2
| @@ -451,14 +451,14 @@ function AppointmentsContent() { | |||
| 451 | <TabsTrigger value="appointments" class="min-w-0"> | 451 | <TabsTrigger value="appointments" class="min-w-0"> |
| 452 | <IconCalendarDays class="h-4 w-4" /> | 452 | <IconCalendarDays class="h-4 w-4" /> |
| 453 | {isStaff() ? t("appointments.requests") : t("appointments.myBookings")} | 453 | {isStaff() ? t("appointments.requests") : t("appointments.myBookings")} |
| 454 | - <Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground"> | 454 | + <Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground"> |
| 455 | {isStaff() ? requests().length : myBookings().length} | 455 | {isStaff() ? requests().length : myBookings().length} |
| 456 | </Badge> | 456 | </Badge> |
| 457 | </TabsTrigger> | 457 | </TabsTrigger> |
| 458 | <TabsTrigger value="availability" class="min-w-0"> | 458 | <TabsTrigger value="availability" class="min-w-0"> |
| 459 | <IconClock class="h-4 w-4" /> | 459 | <IconClock class="h-4 w-4" /> |
| 460 | {isStaff() ? t("appointments.mySlots") : t("appointments.availableSlots")} | 460 | {isStaff() ? t("appointments.mySlots") : t("appointments.availableSlots")} |
| 461 | - <Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground"> | 461 | + <Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground"> |
| 462 | {isStaff() ? mySlots().length : availableSlots().length} | 462 | {isStaff() ? mySlots().length : availableSlots().length} |
| 463 | </Badge> | 463 | </Badge> |
| 464 | </TabsTrigger> | 464 | </TabsTrigger> |
src/pages/calendar-page.tsxmodified+8 -8
| @@ -423,7 +423,7 @@ function CalendarContent() { | |||
| 423 | )} | 423 | )} |
| 424 | > | 424 | > |
| 425 | <button type="button" class="flex shrink-0 flex-col items-center gap-1 rounded-md py-1 hover:bg-muted/40" onClick={() => setSelected(key)}> | 425 | <button type="button" class="flex shrink-0 flex-col items-center gap-1 rounded-md py-1 hover:bg-muted/40" onClick={() => setSelected(key)}> |
| 426 | - <span class="text-[10px] font-semibold uppercase tracking-wide text-muted-foreground"> | 426 | + <span class="text-[11px] font-semibold uppercase tracking-wide text-muted-foreground"> |
| 427 | {dayNames()[(day.getDay() + 6) % 7]} | 427 | {dayNames()[(day.getDay() + 6) % 7]} |
| 428 | </span> | 428 | </span> |
| 429 | <span | 429 | <span |
| @@ -440,7 +440,7 @@ function CalendarContent() { | |||
| 440 | {(item) => ( | 440 | {(item) => ( |
| 441 | <a | 441 | <a |
| 442 | href={item.href} | 442 | href={item.href} |
| 443 | - class={cn("block min-w-0 rounded px-1.5 py-1 text-[10px] leading-tight font-medium", KIND_STYLES[item.kind].chip)} | 443 | + class={cn("block min-w-0 rounded px-1.5 py-1 text-[11px] leading-tight font-medium", KIND_STYLES[item.kind].chip)} |
| 444 | > | 444 | > |
| 445 | <span class="block truncate">{clock(item.at)}</span> | 445 | <span class="block truncate">{clock(item.at)}</span> |
| 446 | <span class="block truncate">{item.title}</span> | 446 | <span class="block truncate">{item.title}</span> |
| @@ -460,7 +460,7 @@ function CalendarContent() { | |||
| 460 | <div class="grid shrink-0 grid-cols-7 border-b"> | 460 | <div class="grid shrink-0 grid-cols-7 border-b"> |
| 461 | <For each={dayNames()}> | 461 | <For each={dayNames()}> |
| 462 | {(name) => ( | 462 | {(name) => ( |
| 463 | - <div class="border-r border-border/40 px-2 py-1.5 text-center text-[10px] font-semibold uppercase tracking-wider text-muted-foreground last:border-r-0"> | 463 | + <div class="border-r border-border/40 px-2 py-1.5 text-center text-[11px] font-semibold uppercase tracking-wider text-muted-foreground last:border-r-0"> |
| 464 | {name} | 464 | {name} |
| 465 | </div> | 465 | </div> |
| 466 | )} | 466 | )} |
| @@ -505,14 +505,14 @@ function CalendarContent() { | |||
| 505 | <div class="mt-1 hidden min-h-0 flex-1 flex-col justify-end gap-0.5 overflow-hidden sm:flex"> | 505 | <div class="mt-1 hidden min-h-0 flex-1 flex-col justify-end gap-0.5 overflow-hidden sm:flex"> |
| 506 | <For each={dayItems().slice(0, CHIPS_PER_CELL)}> | 506 | <For each={dayItems().slice(0, CHIPS_PER_CELL)}> |
| 507 | {(item) => ( | 507 | {(item) => ( |
| 508 | - <span class={cn("inline-flex min-w-0 items-center gap-1 rounded px-1 py-0.5 text-[9px] font-medium leading-none", KIND_STYLES[item.kind].chip)}> | 508 | + <span class={cn("inline-flex min-w-0 items-center gap-1 rounded px-1 py-0.5 text-[11px] font-medium leading-none", KIND_STYLES[item.kind].chip)}> |
| 509 | <span class={cn("h-1.5 w-1.5 shrink-0 rounded-full", KIND_STYLES[item.kind].dot)} /> | 509 | <span class={cn("h-1.5 w-1.5 shrink-0 rounded-full", KIND_STYLES[item.kind].dot)} /> |
| 510 | <span class="truncate">{item.title}</span> | 510 | <span class="truncate">{item.title}</span> |
| 511 | </span> | 511 | </span> |
| 512 | )} | 512 | )} |
| 513 | </For> | 513 | </For> |
| 514 | <Show when={dayItems().length > CHIPS_PER_CELL}> | 514 | <Show when={dayItems().length > CHIPS_PER_CELL}> |
| 515 | - <span class="pl-1 text-[9px] font-medium leading-none text-muted-foreground"> | 515 | + <span class="pl-1 text-[11px] font-medium leading-none text-muted-foreground"> |
| 516 | +{dayItems().length - CHIPS_PER_CELL} | 516 | +{dayItems().length - CHIPS_PER_CELL} |
| 517 | </span> | 517 | </span> |
| 518 | </Show> | 518 | </Show> |
| @@ -540,7 +540,7 @@ function CalendarContent() { | |||
| 540 | <For each={selectedGroups()}> | 540 | <For each={selectedGroups()}> |
| 541 | {(group) => ( | 541 | {(group) => ( |
| 542 | <div class="space-y-2"> | 542 | <div class="space-y-2"> |
| 543 | - <p class={cn("text-[10px] font-semibold uppercase tracking-wider", KIND_STYLES[group.kind].heading)}> | 543 | + <p class={cn("text-[11px] font-semibold uppercase tracking-wider", KIND_STYLES[group.kind].heading)}> |
| 544 | {t(KIND_STYLES[group.kind].labelKey)} | 544 | {t(KIND_STYLES[group.kind].labelKey)} |
| 545 | </p> | 545 | </p> |
| 546 | <For each={group.rows}> | 546 | <For each={group.rows}> |
| @@ -559,10 +559,10 @@ function CalendarContent() { | |||
| 559 | </div> | 559 | </div> |
| 560 | <Show | 560 | <Show |
| 561 | when={item.status} | 561 | when={item.status} |
| 562 | - fallback={<Badge variant="outline" class="shrink-0 text-[10px]">{t(KIND_STYLES[item.kind].labelKey)}</Badge>} | 562 | + fallback={<Badge variant="outline" class="shrink-0 text-[11px]">{t(KIND_STYLES[item.kind].labelKey)}</Badge>} |
| 563 | > | 563 | > |
| 564 | {(status) => ( | 564 | {(status) => ( |
| 565 | - <Badge variant="outline" class={cn("shrink-0 gap-1 text-[10px]", appointmentStatusClass(status()))}> | 565 | + <Badge variant="outline" class={cn("shrink-0 gap-1 text-[11px]", appointmentStatusClass(status()))}> |
| 566 | <span class={cn("h-1.5 w-1.5 rounded-full", appointmentStatusDotClass(status()))} /> | 566 | <span class={cn("h-1.5 w-1.5 rounded-full", appointmentStatusDotClass(status()))} /> |
| 567 | {t(appointmentStatusLabelKey(status()))} | 567 | {t(appointmentStatusLabelKey(status()))} |
| 568 | </Badge> | 568 | </Badge> |
src/pages/course-detail-page.tsxmodified+4 -4
| @@ -454,11 +454,11 @@ function CourseDetailContent() { | |||
| 454 | 454 | ||
| 455 | <Tabs value={courseTab()} onChange={setCourseTab} class="space-y-4"> | 455 | <Tabs value={courseTab()} onChange={setCourseTab} class="space-y-4"> |
| 456 | <TabsList class="flex w-full justify-start overflow-x-auto sm:grid sm:grid-cols-4" aria-label={c().title}> | 456 | <TabsList class="flex w-full justify-start overflow-x-auto sm:grid sm:grid-cols-4" aria-label={c().title}> |
| 457 | - <TabsTrigger value="subjects" class="min-w-0"><IconBook class="h-4 w-4" />{t("subjects.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{subjectCount()}</Badge></TabsTrigger> | 457 | + <TabsTrigger value="subjects" class="min-w-0"><IconBook class="h-4 w-4" />{t("subjects.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{subjectCount()}</Badge></TabsTrigger> |
| 458 | - <TabsTrigger value="sections" class="min-w-0"><IconSchool class="h-4 w-4" />{t("instances.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{sectionCount()}</Badge></TabsTrigger> | 458 | + <TabsTrigger value="sections" class="min-w-0"><IconSchool class="h-4 w-4" />{t("instances.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{sectionCount()}</Badge></TabsTrigger> |
| 459 | - <TabsTrigger value="notes" class="min-w-0"><IconNote class="h-4 w-4" />{t("courseNotes.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{noteCount()}</Badge></TabsTrigger> | 459 | + <TabsTrigger value="notes" class="min-w-0"><IconNote class="h-4 w-4" />{t("courseNotes.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{noteCount()}</Badge></TabsTrigger> |
| 460 | <Show when={hasMembers()}> | 460 | <Show when={hasMembers()}> |
| 461 | - <TabsTrigger value="members" class="min-w-0"><IconUsers class="h-4 w-4" />{t("courses.members")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{c().course_membership_count}</Badge></TabsTrigger> | 461 | + <TabsTrigger value="members" class="min-w-0"><IconUsers class="h-4 w-4" />{t("courses.members")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{c().course_membership_count}</Badge></TabsTrigger> |
| 462 | </Show> | 462 | </Show> |
| 463 | </TabsList> | 463 | </TabsList> |
| 464 | 464 | ||
src/pages/dashboard-page.tsxmodified+2 -2
| @@ -646,7 +646,7 @@ function DashboardContent() { | |||
| 646 | cell: (info) => { | 646 | cell: (info) => { |
| 647 | const s = info.row.original.status; | 647 | const s = info.row.original.status; |
| 648 | return ( | 648 | return ( |
| 649 | - <Badge variant="outline" class="rounded-full text-[10px]"> | 649 | + <Badge variant="outline" class="rounded-full text-[11px]"> |
| 650 | <span class={cn("mr-1.5 inline-block h-1.5 w-1.5 rounded-full", s === "active" ? "bg-emerald-500" : s === "today" ? "bg-amber-500" : "bg-muted-foreground/50")} /> | 650 | <span class={cn("mr-1.5 inline-block h-1.5 w-1.5 rounded-full", s === "active" ? "bg-emerald-500" : s === "today" ? "bg-amber-500" : "bg-muted-foreground/50")} /> |
| 651 | {s === "active" ? t("dashboard.activeNow") : s === "today" ? t("dashboard.today") : t("dashboard.soon")} | 651 | {s === "active" ? t("dashboard.activeNow") : s === "today" ? t("dashboard.today") : t("dashboard.soon")} |
| 652 | </Badge> | 652 | </Badge> |
| @@ -818,7 +818,7 @@ function DashboardContent() { | |||
| 818 | class="w-full rounded-sm bg-primary/70" | 818 | class="w-full rounded-sm bg-primary/70" |
| 819 | style={{ height: `${Math.max(4, Math.round((day.minutes / weeklyFocusMax()) * 100))}%` }} | 819 | style={{ height: `${Math.max(4, Math.round((day.minutes / weeklyFocusMax()) * 100))}%` }} |
| 820 | /> | 820 | /> |
| 821 | - <span class="text-[10px] text-text-subtle">{day.label}</span> | 821 | + <span class="text-[11px] text-text-subtle">{day.label}</span> |
| 822 | </div> | 822 | </div> |
| 823 | )} | 823 | )} |
| 824 | </For> | 824 | </For> |
src/pages/instance-detail-page.tsxmodified+5 -5
| @@ -506,12 +506,12 @@ function InstanceDetailContent() { | |||
| 506 | 506 | ||
| 507 | <Tabs value={tab()} onChange={setTab} class="space-y-4"> | 507 | <Tabs value={tab()} onChange={setTab} class="space-y-4"> |
| 508 | <TabsList class="flex w-full justify-start overflow-x-auto sm:grid sm:grid-cols-3 xl:grid-cols-5" aria-label={course.latest?.title ?? ""}> | 508 | <TabsList class="flex w-full justify-start overflow-x-auto sm:grid sm:grid-cols-3 xl:grid-cols-5" aria-label={course.latest?.title ?? ""}> |
| 509 | - <TabsTrigger value="exams" class="min-w-0"><IconExam class="h-4 w-4" />{t("courses.exams")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{examCount()}</Badge></TabsTrigger> | 509 | + <TabsTrigger value="exams" class="min-w-0"><IconExam class="h-4 w-4" />{t("courses.exams")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{examCount()}</Badge></TabsTrigger> |
| 510 | - <TabsTrigger value="homework" class="min-w-0"><IconHomework class="h-4 w-4" />{t("homework.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{homeworkCount()}</Badge></TabsTrigger> | 510 | + <TabsTrigger value="homework" class="min-w-0"><IconHomework class="h-4 w-4" />{t("homework.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{homeworkCount()}</Badge></TabsTrigger> |
| 511 | - <TabsTrigger value="sessions" class="min-w-0"><IconCalendarDays class="h-4 w-4" />{t("sessions.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{sessionCount()}</Badge></TabsTrigger> | 511 | + <TabsTrigger value="sessions" class="min-w-0"><IconCalendarDays class="h-4 w-4" />{t("sessions.title")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{sessionCount()}</Badge></TabsTrigger> |
| 512 | - <TabsTrigger value="teachers" class="min-w-0"><IconSchool class="h-4 w-4" />{t("courses.teachers")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{inst().teachers.length}</Badge></TabsTrigger> | 512 | + <TabsTrigger value="teachers" class="min-w-0"><IconSchool class="h-4 w-4" />{t("courses.teachers")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{inst().teachers.length}</Badge></TabsTrigger> |
| 513 | <Show when={canManage()}> | 513 | <Show when={canManage()}> |
| 514 | - <TabsTrigger value="students" class="min-w-0"><IconUsers class="h-4 w-4" />{t("courses.roster")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[10px] group-data-selected:bg-background group-data-selected:text-foreground">{rosterCount()}</Badge></TabsTrigger> | 514 | + <TabsTrigger value="students" class="min-w-0"><IconUsers class="h-4 w-4" />{t("courses.roster")}<Badge variant="secondary" class="h-5 min-w-5 justify-center rounded-full px-1.5 py-0 text-[11px] group-data-selected:bg-background group-data-selected:text-foreground">{rosterCount()}</Badge></TabsTrigger> |
| 515 | </Show> | 515 | </Show> |
| 516 | </TabsList> | 516 | </TabsList> |
| 517 | 517 | ||
src/pages/messages-page.tsxmodified+1 -1
| @@ -239,7 +239,7 @@ export default function MessagesPage() { | |||
| 239 | <span>{t("messages.inbox")}</span> | 239 | <span>{t("messages.inbox")}</span> |
| 240 | </div> | 240 | </div> |
| 241 | <Show when={unreadCount() ? unreadCount()! > 0 : false}> | 241 | <Show when={unreadCount() ? unreadCount()! > 0 : false}> |
| 242 | - <span class="rounded-full bg-primary px-2 py-0.5 text-[10px] font-bold text-primary-foreground"> | 242 | + <span class="rounded-full bg-primary px-2 py-0.5 text-[11px] font-bold text-primary-foreground"> |
| 243 | {unreadCount()} | 243 | {unreadCount()} |
| 244 | </span> | 244 | </span> |
| 245 | </Show> | 245 | </Show> |
src/pages/question-detail-page.tsxmodified+1 -1
| @@ -218,7 +218,7 @@ function QuestionDetailContent() { | |||
| 218 | <div class="rounded-xl border bg-card/50 p-5"> | 218 | <div class="rounded-xl border bg-card/50 p-5"> |
| 219 | <div class="flex items-center justify-between"> | 219 | <div class="flex items-center justify-between"> |
| 220 | <div class="flex items-center gap-2 text-sm font-medium"> | 220 | <div class="flex items-center gap-2 text-sm font-medium"> |
| 221 | - <div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-[10px] text-primary-text"> | 221 | + <div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary/10 text-[11px] text-primary-text"> |
| 222 | {sol.author.display_name?.[0] || sol.author.username[0].toUpperCase()} | 222 | {sol.author.display_name?.[0] || sol.author.username[0].toUpperCase()} |
| 223 | </div> | 223 | </div> |
| 224 | {personLabel(sol.author)} | 224 | {personLabel(sol.author)} |
src/pages/questions-page.tsxmodified+1 -1
| @@ -125,7 +125,7 @@ function QuestionsContent() { | |||
| 125 | <p class="mt-1 line-clamp-2 text-sm text-muted-foreground">{question.body}</p> | 125 | <p class="mt-1 line-clamp-2 text-sm text-muted-foreground">{question.body}</p> |
| 126 | <div class="mt-2 flex items-center gap-3 text-xs text-muted-foreground"> | 126 | <div class="mt-2 flex items-center gap-3 text-xs text-muted-foreground"> |
| 127 | <span class="flex items-center gap-1"> | 127 | <span class="flex items-center gap-1"> |
| 128 | - <div class="flex h-4 w-4 items-center justify-center rounded-full bg-primary/10 text-[8px] font-bold text-primary-text"> | 128 | + <div class="flex h-4 w-4 items-center justify-center rounded-full bg-primary/10 text-[10px] font-bold text-primary-text"> |
| 129 | {question.asker.display_name?.[0] || question.asker.username[0].toUpperCase()} | 129 | {question.asker.display_name?.[0] || question.asker.username[0].toUpperCase()} |
| 130 | </div> | 130 | </div> |
| 131 | {personLabel(question.asker)} | 131 | {personLabel(question.asker)} |
src/pages/settings-page.tsxmodified+1 -1
| @@ -369,7 +369,7 @@ function SettingsContent() { | |||
| 369 | > | 369 | > |
| 370 | {t(CORE_ATTENDANCE_LABELS[status() as keyof typeof CORE_ATTENDANCE_LABELS])} | 370 | {t(CORE_ATTENDANCE_LABELS[status() as keyof typeof CORE_ATTENDANCE_LABELS])} |
| 371 | </span> | 371 | </span> |
| 372 | - <span class="text-[10px] font-medium uppercase tracking-wide text-muted-foreground"> | 372 | + <span class="text-[11px] font-medium uppercase tracking-wide text-muted-foreground"> |
| 373 | {t("settings.locked")} | 373 | {t("settings.locked")} |
| 374 | </span> | 374 | </span> |
| 375 | </div> | 375 | </div> |
src/pages/whiteboard-page.tsxmodified+1 -1
| @@ -307,7 +307,7 @@ function WhiteboardContent() { | |||
| 307 | <span class="flex min-w-0 items-center gap-1.5"> | 307 | <span class="flex min-w-0 items-center gap-1.5"> |
| 308 | <span class="truncate text-sm font-medium">{nameOf(userId)}</span> | 308 | <span class="truncate text-sm font-medium">{nameOf(userId)}</span> |
| 309 | <Show when={userId === live().creator}> | 309 | <Show when={userId === live().creator}> |
| 310 | - <Badge variant="outline" class="shrink-0 text-[10px]">{t("whiteboard.creator")}</Badge> | 310 | + <Badge variant="outline" class="shrink-0 text-[11px]">{t("whiteboard.creator")}</Badge> |
| 311 | </Show> | 311 | </Show> |
| 312 | </span> | 312 | </span> |
| 313 | <span class="block truncate text-xs text-muted-foreground">{roleOf(userId) || userId}</span> | 313 | <span class="block truncate text-xs text-muted-foreground">{roleOf(userId) || userId}</span> |