From 5007fa4d5fd720e82ff66481cab6faccf60768f9 Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Mon, 9 Feb 2026 13:29:52 +1100 Subject: [PATCH] fix: resolve clipping on `` (#21989) This pull-request resolves a really tiny issue on the `` where the content would be showing a few too many pixels of the light theme with the dark theme over top. This was due to [Subpixel Rendering](https://en.wikipedia.org/wiki/Subpixel_rendering) within Chrome (assumedly other browsers too). Furthermore, we no longer use `bg-surface-secondary` in the header. So I went ahead and downgraded this to `bg-surface-primary` to match the current application. CleanShot 2026-02-08 at 02 55 06@2x | Old | New | | --- | --- | | SUBPIXEL_ISSUE | SUBPIXEL_NO_ISSUE | --- .../UserSettingsPage/AppearancePage/AppearanceForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx b/site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx index 0b86d8fdf7..d072c129e2 100644 --- a/site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx +++ b/site/src/pages/UserSettingsPage/AppearancePage/AppearanceForm.tsx @@ -179,6 +179,10 @@ const AutoThemePreviewButton: FC = ({ preview={preview} displayName={displayName} theme={rightTheme} + style={{ + // Slightly past the bounding box to avoid cutting off the outline + clipPath: "polygon(50% -5%, 105% -5%, 105% 105%, 50% 105%)", + }} /> @@ -248,7 +252,7 @@ const ThemePreview: FC = ({ style={style} >
-
+