Skip to content

Commit 7f3227c

Browse files
fix(ui): adjust font display and styling in brand view
1 parent 5e6e6a9 commit 7f3227c

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

apps/web/src/routes/_view/brand.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,12 @@ function TypographyGrid({
350350
>
351351
Aa
352352
</div>
353-
<div className="font-medium text-stone-600">{font.name}</div>
353+
<div
354+
className="font-medium text-stone-600"
355+
style={{ fontFamily: font.fontFamily }}
356+
>
357+
{font.name}
358+
</div>
354359
</button>
355360
))}
356361
</div>
@@ -439,7 +444,7 @@ function MobileSidebarDrawer({
439444
initial={{ x: "-100%" }}
440445
animate={{ x: 0 }}
441446
exit={{ x: "-100%" }}
442-
transition={{ type: "spring", damping: 25, stiffness: 300 }}
447+
transition={{ type: "tween", duration: 0.2, ease: "easeOut" }}
443448
>
444449
<div className="flex items-center justify-between px-4 py-3 border-b border-neutral-200 bg-stone-50">
445450
<span className="text-sm font-medium text-stone-600">
@@ -620,10 +625,16 @@ function TypographySidebar({
620625
Aa
621626
</div>
622627
<div className="flex-1 min-w-0">
623-
<p className="text-sm font-medium text-stone-600 truncate">
628+
<p
629+
className="text-sm font-medium text-stone-600 truncate"
630+
style={{ fontFamily: font.fontFamily }}
631+
>
624632
{font.name}
625633
</p>
626-
<p className="text-xs text-neutral-500 truncate">
634+
<p
635+
className="text-xs text-neutral-500 truncate"
636+
style={{ fontFamily: font.fontFamily }}
637+
>
627638
{font.fontFamily}
628639
</p>
629640
</div>

0 commit comments

Comments
 (0)