fix: text component scaling (#5090)

* fix: text component scaling

* chore: update scaling text xs to 0.75
This commit is contained in:
Faisal Amir 2025-05-25 01:09:07 +07:00 committed by GitHub
parent 3443c42947
commit a29152aa76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -358,7 +358,7 @@ export const ThreadContent = memo(
backgroundColor: 'transparent',
height: '100%',
}}
className="w-full h-full"
className="w-full h-full !text-sm"
/>
</div>
</div>

View File

@ -73,7 +73,7 @@ export default function EditJsonMCPserver({
fontFamily: 'ui-monospace',
backgroundColor: 'transparent',
}}
className="w-full "
className="w-full !text-sm "
/>
</div>
{error && <div className="text-destructive text-sm">{error}</div>}

View File

@ -22,6 +22,7 @@
--color-destructive-fg: var(--app-destructive-fg);
/* Font scale based on --font-size-base */
--text-xs: calc(var(--font-size-base) * 0.75); /* ~12px */
--text-sm: calc(var(--font-size-base) * 0.875); /* ~14px */
--text-base: var(--font-size-base); /* ~16px */
--text-lg: calc(var(--font-size-base) * 1.125); /* ~18px */