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")} > - ✎ + + +