Skip to content

Commit fa9c987

Browse files
authored
Merge pull request #8 from Paca-AI/chore/update-font-sizes
fix: standardize font sizes in BDD scenarios section
2 parents 6a0a87b + d5ef895 commit fa9c987

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

frontend/src/BDDScenariosSection.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function ClauseRow({
5858
<div className="flex gap-2.5 items-start">
5959
<span
6060
className={cn(
61-
"mt-0.75 shrink-0 rounded px-1.5 py-0.5 text-[9px] font-bold tracking-wider uppercase",
61+
"mt-0.75 shrink-0 rounded px-1.5 py-0.5 text-xs font-bold tracking-wider uppercase",
6262
color,
6363
)}
6464
>
@@ -72,7 +72,7 @@ function ClauseRow({
7272
disabled={disabled}
7373
rows={1}
7474
placeholder={placeholder}
75-
className="flex-1 min-h-7 resize-none bg-transparent text-[12.5px] leading-relaxed text-foreground/90 outline-none placeholder:text-muted-foreground/40 disabled:opacity-60 focus:placeholder:text-muted-foreground/60 transition-colors py-0.5"
75+
className="flex-1 min-h-7 resize-none bg-transparent text-sm leading-relaxed text-foreground/90 outline-none placeholder:text-muted-foreground/40 disabled:opacity-60 focus:placeholder:text-muted-foreground/60 transition-colors py-0.5"
7676
style={{ fieldSizing: "content" } as CSSProperties}
7777
/>
7878
</div>
@@ -182,14 +182,14 @@ function ScenarioCard({
182182
}
183183
}}
184184
onClick={(e) => e.stopPropagation()}
185-
className="flex-1 bg-transparent text-[13px] font-semibold text-foreground outline-none"
185+
className="flex-1 bg-transparent text-sm font-semibold text-foreground outline-none"
186186
/>
187187
) : (
188188
<button
189189
type="button"
190190
disabled={!canEdit}
191191
className={cn(
192-
"flex-1 text-left text-[13px] font-semibold text-foreground truncate",
192+
"flex-1 text-left text-sm font-semibold text-foreground truncate",
193193
canEdit && "hover:cursor-text",
194194
)}
195195
onClick={(e) => {
@@ -309,7 +309,7 @@ function NewScenarioForm({
309309
value={title}
310310
onChange={(e) => setTitle(e.target.value)}
311311
placeholder="Scenario title…"
312-
className="w-full bg-transparent text-[13px] font-semibold text-foreground outline-none placeholder:text-muted-foreground/50 focus:placeholder:text-muted-foreground/70 transition-colors"
312+
className="w-full bg-transparent text-sm font-semibold text-foreground outline-none placeholder:text-muted-foreground/50 focus:placeholder:text-muted-foreground/70 transition-colors"
313313
onKeyDown={(e) => {
314314
if (e.key === "Enter" && canSave) createMut.mutate();
315315
if (e.key === "Escape") onDone();
@@ -344,15 +344,15 @@ function NewScenarioForm({
344344
<button
345345
type="button"
346346
onClick={onDone}
347-
className="text-[11px] font-semibold text-muted-foreground/70 hover:text-foreground px-2.5 py-1.5 rounded-lg hover:bg-muted/40 transition-all duration-150"
347+
className="text-xs font-semibold text-muted-foreground/70 hover:text-foreground px-2.5 py-1.5 rounded-lg hover:bg-muted/40 transition-all duration-150"
348348
>
349349
Cancel
350350
</button>
351351
<button
352352
type="button"
353353
onClick={() => createMut.mutate()}
354354
disabled={!canSave}
355-
className="text-[11px] font-semibold px-2.5 py-1.5 rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-40 transition-all duration-150"
355+
className="text-xs font-semibold px-2.5 py-1.5 rounded-lg bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-40 transition-all duration-150"
356356
>
357357
{createMut.isPending ? "Creating…" : "Create scenario"}
358358
</button>
@@ -378,10 +378,10 @@ function BDDScenariosSectionInner({
378378
<div className="space-y-3">
379379
{/* Section heading */}
380380
<div className="flex items-center justify-between">
381-
<h3 className="text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 flex items-center gap-2">
381+
<h3 className="text-xs font-semibold uppercase tracking-[0.08em] text-muted-foreground/70 flex items-center gap-2">
382382
<span>BDD Scenarios</span>
383383
{scenarios.length > 0 && (
384-
<span className="font-bold tabular-nums rounded-full bg-muted/50 px-1.5 py-0.5 text-[10px]">
384+
<span className="font-bold tabular-nums rounded-full bg-muted/50 px-1.5 py-0.5 text-xs">
385385
{scenarios.length}
386386
</span>
387387
)}
@@ -392,7 +392,7 @@ function BDDScenariosSectionInner({
392392
<button
393393
type="button"
394394
onClick={() => setAdding(true)}
395-
className="flex items-center gap-1.5 rounded-lg bg-muted/40 text-muted-foreground/80 hover:bg-muted/60 hover:text-foreground px-2.5 py-1.5 text-[11px] font-semibold transition-all duration-150"
395+
className="flex items-center gap-1.5 rounded-lg bg-muted/40 text-muted-foreground/80 hover:bg-muted/60 hover:text-foreground px-2.5 py-1.5 text-xs font-semibold transition-all duration-150"
396396
>
397397
<Plus className="size-3" />
398398
Add scenario
@@ -404,7 +404,7 @@ function BDDScenariosSectionInner({
404404
{isLoading ? (
405405
<div className="flex items-center gap-3 px-1 py-3 text-muted-foreground/45">
406406
<FlaskConical className="size-4 opacity-50" />
407-
<p className="text-[13px] italic">Loading…</p>
407+
<p className="text-sm italic">Loading…</p>
408408
</div>
409409
) : scenarios.length > 0 ? (
410410
<div className="space-y-2">
@@ -422,7 +422,7 @@ function BDDScenariosSectionInner({
422422
!adding && (
423423
<div className="flex items-center gap-3 px-1 py-3 text-muted-foreground/45">
424424
<FlaskConical className="size-4 opacity-70" />
425-
<p className="text-[13px] italic">No BDD scenarios yet</p>
425+
<p className="text-sm italic">No BDD scenarios yet</p>
426426
</div>
427427
)
428428
)}

0 commit comments

Comments
 (0)