Skip to content

Commit 22b933e

Browse files
lucbrinkmanclaude
andcommitted
Fix font family and weight in outcome visualization components
- Explicitly set font-family to Plus Jakarta Sans to ensure consistent rendering - Change percentage text from font-bold to font-normal (weight 400) for lighter appearance - Fix "3" character rendering with proper rounded top instead of flat top - Keep modal header at font-extrabold for proper emphasis 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e90bc3e commit 22b933e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

components/OutcomeBarGraph.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default function OutcomeBarGraph({
3535
<button
3636
onClick={() => setIsModalOpen(true)}
3737
className="w-10 h-32 bg-gray-900 border border-gray-800 rounded-lg overflow-hidden flex flex-col hover:border-gray-600 transition-colors cursor-pointer"
38+
style={{ fontFamily: "'Plus Jakarta Sans', sans-serif" }}
3839
>
3940
{/* Good outcomes (top) */}
4041
{goodPercent > 0 && (
@@ -47,7 +48,7 @@ export default function OutcomeBarGraph({
4748
}}
4849
>
4950
{goodPercent > 15 && (
50-
<span className="absolute inset-0 flex items-center justify-center text-base font-bold text-black">
51+
<span className="absolute inset-0 flex items-center justify-center text-base font-normal text-black">
5152
{goodPercent.toFixed(0)}
5253
</span>
5354
)}
@@ -65,7 +66,7 @@ export default function OutcomeBarGraph({
6566
}}
6667
>
6768
{ambivalentPercent > 15 && (
68-
<span className="absolute inset-0 flex items-center justify-center text-base font-bold text-black">
69+
<span className="absolute inset-0 flex items-center justify-center text-base font-normal text-black">
6970
{ambivalentPercent.toFixed(0)}
7071
</span>
7172
)}
@@ -83,7 +84,7 @@ export default function OutcomeBarGraph({
8384
}}
8485
>
8586
{existentialPercent > 15 && (
86-
<span className="absolute inset-0 flex items-center justify-center text-base font-bold text-black">
87+
<span className="absolute inset-0 flex items-center justify-center text-base font-normal text-black">
8788
{existentialPercent.toFixed(0)}
8889
</span>
8990
)}

components/OutcomeDetailModal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function OutcomeDetailModal({
7272
title={`${label}: ${categoryPercent}%`}
7373
>
7474
{heightPercent > 8 && (
75-
<div className="absolute inset-0 flex items-center justify-center text-sm font-bold text-black">
75+
<div className="absolute inset-0 flex items-center justify-center text-sm font-normal text-black">
7676
{label} - {categoryPercent}%
7777
</div>
7878
)}
@@ -85,6 +85,7 @@ export function OutcomeDetailModal({
8585
className="fixed inset-0 z-50 flex items-center justify-center bg-black/50"
8686
onMouseDown={handleBackdropMouseDown}
8787
onMouseUp={handleBackdropMouseUp}
88+
style={{ fontFamily: "'Plus Jakarta Sans', sans-serif" }}
8889
>
8990
<div
9091
className="bg-gray-900 rounded-lg shadow-xl max-w-4xl w-full mx-4 border border-gray-700"
@@ -93,7 +94,7 @@ export function OutcomeDetailModal({
9394
>
9495
{/* Header */}
9596
<div className="flex items-center justify-between p-6 border-b border-gray-800">
96-
<h2 className="text-2xl font-bold text-white">
97+
<h2 className="text-2xl font-extrabold text-white">
9798
Outcome Distribution
9899
</h2>
99100
<button

0 commit comments

Comments
 (0)