From f29a1da7d4c189c51d89d1ef5c3949a47ff8ea24 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Fri, 18 Sep 2026 10:16:18 +0000 Subject: [PATCH] Design store: replace mismatched icon glyphs with consistent SVG icons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The edit/duplicate/export/delete row mixed three text glyphs with a color emoji (🗑), which render at different sizes and weights across platforms - that was the actual cause of the row looking uneven, not just sizing. Swapped all four for matching stroke-style SVG icons. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.css | 7 ++++--- web/src/App.tsx | 45 ++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/web/src/App.css b/web/src/App.css index 68e0409..a979269 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -3415,7 +3415,7 @@ .ts-design-theme-card-actions { display: flex; - gap: 0.3rem; + gap: 0.4rem; margin-top: 0.5rem; } @@ -3450,10 +3450,11 @@ there's plenty of room in a custom-theme card for them. */ .ts-design-theme-card-actions button { flex: 1; + display: flex; + align-items: center; + justify-content: center; min-height: 2.6rem; padding: 0.6rem 0; - font-size: 20px; - line-height: 1; } .ts-design-store-card-actions { diff --git a/web/src/App.tsx b/web/src/App.tsx index 47463fb..bfe41d9 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -1,4 +1,4 @@ -import { useEffect, useMemo, useRef, useState } from "react"; +import { useEffect, useMemo, useRef, useState, type ReactNode } from "react"; import { useRegisterSW } from "virtual:pwa-register/react"; import "./App.css"; @@ -5214,6 +5214,27 @@ function AnwendungPanel() { type CustomThemeDraft = { id: string | null; name: string; baseTheme: DesignTheme; css: string }; +/** Shared stroke-icon wrapper for the custom-theme-card action row, so all + * four icons (edit/duplicate/export/delete) render at the same size and + * color - mixing text glyphs with an emoji (as before) made them look + * inconsistent across fonts/platforms. */ +function ActionIcon({ children }: { children: ReactNode }) { + return ( + + {children} + + ); +} + function DesignPanel({ designSelection, onSelectionChange, @@ -5377,7 +5398,9 @@ function DesignPanel({ onClick={() => setEditing({ id: theme.id, name: theme.name, baseTheme: theme.baseTheme, css: theme.css })} title={t("design.custom.edit")} > - ✎ + + +