Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Fix root font sizing on desktop Safari (#5239)

Peter Chinmana555dc2f0f23
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index d785ee6bc1..ed4fd74f54 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -273,10 +273,22 @@
@layer base {
html {
- font: -apple-system-body;
overflow: hidden;
}
+ /* `-apple-system-body` opts the root font-size into iOS/iPadOS Dynamic Type
+ so rem-based sizing respects the user's accessibility text-size setting.
+ On desktop Safari the same keyword resolves to the macOS system body size
+ (~13px) instead of the browser default 16px, shrinking every rem-based
+ dimension and making the app look zoomed out next to Chrome. Limit it to
+ coarse-pointer (touch) devices — matching the app's own isTouchDevice()
+ definition — so desktop Safari keeps the standard 16px root. */
+ @media (pointer: coarse) {
+ html {
+ font: -apple-system-body;
+ }
+ }
+
body {
@apply overflow-clip overscroll-none relative m-0 p-0 font-sans optical-auto;
font-feature-settings: "dlig" 1, "calt" 1;