From 8388001849b31e33493d411f7b7f8599f76cbb9e Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Mon, 6 Jul 2026 13:41:07 +0100 Subject: [PATCH] fix(desktop): SVG previews now fill container properly - Use preserveAspectRatio='xMinYMin slice' so SVG covers the frame - Position SVG with inset-0 instead of bottom-0 right-0 - Applies to both ThemePreviewSvg and SystemPreferencePreviewSvg --- desktop/src/shared/theme/ThemePreviewFrame.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/src/shared/theme/ThemePreviewFrame.tsx b/desktop/src/shared/theme/ThemePreviewFrame.tsx index 1a23856f54..7379495a34 100644 --- a/desktop/src/shared/theme/ThemePreviewFrame.tsx +++ b/desktop/src/shared/theme/ThemePreviewFrame.tsx @@ -47,8 +47,9 @@ function ThemePreviewSvg({ vars }: { vars: ThemePreviewVars | null }) { return (
+