File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,17 @@ analytics.initialize();
14
14
// Start resource monitoring (check every 2 minutes)
15
15
resourceMonitor . startMonitoring ( 120000 ) ;
16
16
17
+ // Add a macOS-specific class to the <html> element to enable platform-specific styling
18
+ // Browser-safe detection using navigator properties (works in Tauri and web preview)
19
+ ( ( ) => {
20
+ const isMacLike = typeof navigator !== "undefined" &&
21
+ ( navigator . platform ?. toLowerCase ( ) . includes ( "mac" ) ||
22
+ navigator . userAgent ?. toLowerCase ( ) . includes ( "mac os x" ) ) ;
23
+ if ( isMacLike ) {
24
+ document . documentElement . classList . add ( "is-macos" ) ;
25
+ }
26
+ } ) ( ) ;
27
+
17
28
ReactDOM . createRoot ( document . getElementById ( "root" ) as HTMLElement ) . render (
18
29
< React . StrictMode >
19
30
< PostHogProvider
Original file line number Diff line number Diff line change @@ -339,6 +339,12 @@ button:focus-visible,
339
339
box-shadow : none !important ;
340
340
}
341
341
342
+ /* macOS-only: subtle window outline for transparent, custom-decorated window */
343
+ html .is-macos body {
344
+ /* Maintain rounded-corner shape and add a gentle 1px inner outline */
345
+ box-shadow : inset 0 0 0 1px var (--color-border );
346
+ }
347
+
342
348
/* Typography Utility Classes */
343
349
.text-display-1 {
344
350
font-size : var (--text-5xl );
You can’t perform that action at this time.
0 commit comments