Skip to content

Commit 304cf2b

Browse files
authored
Merge pull request #11 from Paca-AI/chore/update-font-sizes
fix: update font sizes in GitHub settings and task sections for consi…
2 parents e8c6a24 + 2d722c2 commit 304cf2b

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

frontend/src/GitHubSettingsTab.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -301,19 +301,19 @@ function TokenCard({
301301
<div className="space-y-4">
302302
<p className="text-sm text-muted-foreground">
303303
Add a GitHub personal access token with{" "}
304-
<code className="rounded bg-muted px-1 py-0.5 text-[11px] font-mono">
304+
<code className="rounded bg-muted px-1 py-0.5 text-xs font-mono">
305305
repo
306306
</code>{" "}
307307
(includes{" "}
308-
<code className="rounded bg-muted px-1 py-0.5 text-[11px] font-mono">
308+
<code className="rounded bg-muted px-1 py-0.5 text-xs font-mono">
309309
contents
310310
</code>{" "}
311311
and{" "}
312-
<code className="rounded bg-muted px-1 py-0.5 text-[11px] font-mono">
312+
<code className="rounded bg-muted px-1 py-0.5 text-xs font-mono">
313313
pull requests
314314
</code>{" "}
315315
permissions) and the{" "}
316-
<code className="rounded bg-muted px-1 py-0.5 text-[11px] font-mono">
316+
<code className="rounded bg-muted px-1 py-0.5 text-xs font-mono">
317317
admin:repo_hook
318318
</code>{" "}
319319
scope to link repositories, create branches, and track pull requests.
@@ -340,7 +340,7 @@ function TokenCard({
340340
/>
341341
<button
342342
type="button"
343-
className="absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground/60 hover:text-muted-foreground text-[10px] font-medium"
343+
className="absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground/60 hover:text-muted-foreground text-xs font-medium"
344344
onClick={() => setShowToken((v) => !v)}
345345
tabIndex={-1}
346346
>
@@ -525,7 +525,7 @@ function AddRepoDialog({
525525
{repo.full_name}
526526
</span>
527527
{repo.private && (
528-
<span className="shrink-0 rounded px-1.5 py-0.5 text-[10px] font-semibold bg-muted text-muted-foreground">
528+
<span className="shrink-0 rounded px-1.5 py-0.5 text-xs font-semibold bg-muted text-muted-foreground">
529529
Private
530530
</span>
531531
)}
@@ -738,7 +738,7 @@ function GitHubSettingsInner({
738738
<div key={step.num} className="flex items-center gap-3">
739739
<div
740740
className={cn(
741-
"flex size-6 items-center justify-center rounded-full text-[11px] font-bold shrink-0 transition-colors",
741+
"flex size-6 items-center justify-center rounded-full text-xs font-bold shrink-0 transition-colors",
742742
step.done
743743
? "bg-emerald-500 text-white"
744744
: "border-2 border-border text-muted-foreground/60",
@@ -765,7 +765,7 @@ function GitHubSettingsInner({
765765
<div className="space-y-4">
766766
<div className="flex items-center gap-2">
767767
<KeyRound className="size-3.5 text-muted-foreground/70" />
768-
<label className="text-[13px] font-semibold text-foreground/80">
768+
<label className="text-sm font-semibold text-foreground/80">
769769
Personal Access Token
770770
</label>
771771
</div>

frontend/src/GitHubTaskSection.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ function cn(...classes: (string | undefined | null | false)[]): string {
4747
function PRStateBadge({ state }: { state: PullRequest["state"] }) {
4848
if (state === "merged") {
4949
return (
50-
<span className="inline-flex items-center gap-1 rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-semibold text-violet-500">
50+
<span className="inline-flex items-center gap-1 rounded-full bg-violet-500/15 px-2 py-0.5 text-xs font-semibold text-violet-500">
5151
<GitMerge className="size-3" />
5252
Merged
5353
</span>
5454
);
5555
}
5656
if (state === "closed") {
5757
return (
58-
<span className="inline-flex items-center gap-1 rounded-full bg-destructive/15 px-2 py-0.5 text-[10px] font-semibold text-destructive/80">
58+
<span className="inline-flex items-center gap-1 rounded-full bg-destructive/15 px-2 py-0.5 text-xs font-semibold text-destructive/80">
5959
<GitPullRequestClosed className="size-3" />
6060
Closed
6161
</span>
6262
);
6363
}
6464
return (
65-
<span className="inline-flex items-center gap-1 rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-semibold text-emerald-600 dark:text-emerald-500">
65+
<span className="inline-flex items-center gap-1 rounded-full bg-emerald-500/15 px-2 py-0.5 text-xs font-semibold text-emerald-600 dark:text-emerald-500">
6666
<GitPullRequest className="size-3" />
6767
Open
6868
</span>
@@ -111,17 +111,17 @@ function PRRow({
111111
<ExternalLink className="size-3 shrink-0 opacity-50" />
112112
</a>
113113
<div className="flex items-center gap-2 mt-1 flex-wrap">
114-
<span className="text-[11px] text-muted-foreground font-mono">
114+
<span className="text-xs text-muted-foreground font-mono">
115115
#{pr.pr_number}
116116
</span>
117117
<span className="text-muted-foreground/40">·</span>
118-
<span className="text-[11px] text-muted-foreground">
118+
<span className="text-xs text-muted-foreground">
119119
{pr.head_branch}
120120
</span>
121121
{pr.author && (
122122
<>
123123
<span className="text-muted-foreground/40">·</span>
124-
<span className="text-[11px] text-muted-foreground">
124+
<span className="text-xs text-muted-foreground">
125125
by {pr.author}
126126
</span>
127127
</>
@@ -264,7 +264,7 @@ function LinkPRForm({
264264
<div className="space-y-3 rounded-lg border border-border/50 bg-card px-3 py-3">
265265
{/* Repository selector */}
266266
<div>
267-
<p className="text-[11px] text-muted-foreground mb-1">Repository</p>
267+
<p className="text-xs text-muted-foreground mb-1">Repository</p>
268268
<select
269269
value={parsed ? (urlMatchedRepo?.id ?? "") : selectedRepoId}
270270
onChange={(e) => {
@@ -285,7 +285,7 @@ function LinkPRForm({
285285

286286
{/* PR number or URL */}
287287
<div>
288-
<p className="text-[11px] text-muted-foreground mb-1">
288+
<p className="text-xs text-muted-foreground mb-1">
289289
PR number or GitHub URL
290290
</p>
291291
<input
@@ -309,15 +309,15 @@ function LinkPRForm({
309309
disabled={mutation.isPending}
310310
/>
311311
{parsed && urlMatchedRepo && (
312-
<p className="mt-1 text-[11px] text-muted-foreground">
312+
<p className="mt-1 text-xs text-muted-foreground">
313313
Will link PR #{parsed.prNumber} from{" "}
314314
<span className="font-medium">{urlMatchedRepo.full_name}</span>
315315
</p>
316316
)}
317317
</div>
318318

319319
{error && (
320-
<p className="text-[11px] text-destructive/80 leading-relaxed">
320+
<p className="text-xs text-destructive/80 leading-relaxed">
321321
{error}
322322
</p>
323323
)}
@@ -384,13 +384,13 @@ function PullRequestsSection({
384384
<div>
385385
<button
386386
type="button"
387-
className="flex w-full items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 mb-3 hover:text-muted-foreground transition-colors"
387+
className="flex w-full items-center gap-2 text-xs font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 mb-3 hover:text-muted-foreground transition-colors"
388388
onClick={() => setExpanded((v) => !v)}
389389
>
390390
<GitPullRequest className="size-3.5 shrink-0" />
391391
<span>Pull Requests</span>
392392
{count > 0 && (
393-
<span className="rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-bold text-muted-foreground normal-case tracking-normal">
393+
<span className="rounded-full bg-muted px-1.5 py-0.5 text-xs font-bold text-muted-foreground normal-case tracking-normal">
394394
{count}
395395
</span>
396396
)}
@@ -491,7 +491,7 @@ function CommandBlock({ command }: { command: string }) {
491491
return (
492492
<div className="flex items-center gap-2 rounded-md bg-muted/60 border border-border/50 px-3 py-2 mt-1.5">
493493
<Terminal className="size-3.5 shrink-0 text-muted-foreground/50" />
494-
<code className="flex-1 text-[11px] font-mono text-foreground/80 break-all">
494+
<code className="flex-1 text-xs font-mono text-foreground/80 break-all">
495495
{command}
496496
</code>
497497
<CopyButton text={command} />
@@ -507,7 +507,7 @@ function BranchRow({ branch }: { branch: TaskBranch }) {
507507
<div className="rounded-lg border border-border/50 bg-card px-3 py-2.5 space-y-1.5">
508508
<div className="flex items-center gap-2">
509509
<GitBranch className="size-3.5 shrink-0 text-muted-foreground/60" />
510-
<span className="text-[12px] font-mono truncate text-foreground/90 flex-1">
510+
<span className="text-xs font-mono truncate text-foreground/90 flex-1">
511511
{branch.branch_name}
512512
</span>
513513
</div>
@@ -642,15 +642,15 @@ function CreateBranchForm({
642642
<div className="space-y-3 rounded-lg border border-border/50 bg-card px-3 py-3">
643643
{/* Branch type pills */}
644644
<div>
645-
<p className="text-[11px] text-muted-foreground mb-1.5">Type</p>
645+
<p className="text-xs text-muted-foreground mb-1.5">Type</p>
646646
<div className="flex flex-wrap gap-1.5">
647647
{BRANCH_TYPES.map((t) => (
648648
<button
649649
key={t}
650650
type="button"
651651
onClick={() => handleTypeChange(t)}
652652
className={cn(
653-
"rounded-full px-2.5 py-0.5 text-[11px] font-medium border transition-colors",
653+
"rounded-full px-2.5 py-0.5 text-xs font-medium border transition-colors",
654654
t === type
655655
? "border-primary/60 bg-primary/10 text-primary"
656656
: "border-border/50 text-muted-foreground hover:border-border",
@@ -664,7 +664,7 @@ function CreateBranchForm({
664664

665665
{/* Branch name */}
666666
<div>
667-
<p className="text-[11px] text-muted-foreground mb-1">Branch name</p>
667+
<p className="text-xs text-muted-foreground mb-1">Branch name</p>
668668
<input
669669
type="text"
670670
value={branchName}
@@ -681,7 +681,7 @@ function CreateBranchForm({
681681
{/* Repo selector — only when multiple repos */}
682682
{repos.length > 1 && (
683683
<div>
684-
<p className="text-[11px] text-muted-foreground mb-1">Repository</p>
684+
<p className="text-xs text-muted-foreground mb-1">Repository</p>
685685
<select
686686
value={selectedRepoId}
687687
onChange={(e) => setSelectedRepoId(e.target.value)}
@@ -699,7 +699,7 @@ function CreateBranchForm({
699699

700700
{/* Source branch (optional) */}
701701
<div>
702-
<p className="text-[11px] text-muted-foreground mb-1">
702+
<p className="text-xs text-muted-foreground mb-1">
703703
Source branch{" "}
704704
<span className="opacity-60">(optional, defaults to repo default)</span>
705705
</p>
@@ -714,7 +714,7 @@ function CreateBranchForm({
714714
</div>
715715

716716
{error && (
717-
<p className="text-[11px] text-destructive/80 leading-relaxed">
717+
<p className="text-xs text-destructive/80 leading-relaxed">
718718
{error}
719719
</p>
720720
)}
@@ -736,7 +736,7 @@ function CreateBranchForm({
736736
</button>
737737

738738
<div>
739-
<p className="text-[11px] text-muted-foreground mb-0.5">
739+
<p className="text-xs text-muted-foreground mb-0.5">
740740
Or create locally:
741741
</p>
742742
<CommandBlock command={localCmd} />
@@ -797,13 +797,13 @@ function BranchesSection({
797797
<div>
798798
<button
799799
type="button"
800-
className="flex w-full items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 mb-3 hover:text-muted-foreground transition-colors"
800+
className="flex w-full items-center gap-2 text-xs font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 mb-3 hover:text-muted-foreground transition-colors"
801801
onClick={() => setExpanded((v) => !v)}
802802
>
803803
<GitBranch className="size-3.5 shrink-0" />
804804
<span>Branches</span>
805805
{count > 0 && (
806-
<span className="rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-bold text-muted-foreground normal-case tracking-normal">
806+
<span className="rounded-full bg-muted px-1.5 py-0.5 text-xs font-bold text-muted-foreground normal-case tracking-normal">
807807
{count}
808808
</span>
809809
)}

0 commit comments

Comments
 (0)