Design store: fix button sizing/theming, move back button to header

The store's install button had accidentally inherited the icon-row's
big-icon sizing (shared class) and rendered huge. Gave it and the
publish/new-design/import/store buttons proper themed gradient styling
instead of the browser default, and moved "back" to a top-left header
button instead of stacking it under publish.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-09-18 06:58:07 +00:00
1 parent a98cf59111
commit 587c0048e3
2 files changed
+80 -19

No files matched your search

+10 -10
View File
@@ -5559,7 +5559,12 @@ function DesignStorePanel({
return (
<>
<h3>{t("design.store.title")}</h3>
<div className="ts-design-store-header">
<button className="ts-design-store-back" onClick={onClose}>
← {t("design.store.back")}
</button>
<h3>{t("design.store.title")}</h3>
</div>
{unavailable ? (
<p className="ts-options-subtitle">{t("design.store.unavailable")}</p>
) : themes === null ? (
@@ -5604,7 +5609,7 @@ function DesignStorePanel({
: t("design.store.rating.none")}
</span>
</div>
<div className="ts-design-theme-card-actions">
<div className="ts-design-store-card-actions">
<button onClick={() => handleInstall(theme.id)} disabled={installedIds.has(theme.id)}>
{installedIds.has(theme.id) ? t("design.store.installed") : t("design.store.install")}
</button>
@@ -5664,20 +5669,15 @@ function DesignStorePanel({
placeholder={t("design.store.publish.adminTokenPlaceholder")}
/>
</label>
<div className="ts-dialog-buttons-right">
<button onClick={handlePublish} disabled={!publishTarget || publishing}>
{t("design.store.publish.submit")}
</button>
</div>
<button className="ts-design-store-publish-submit" onClick={handlePublish} disabled={!publishTarget || publishing}>
{t("design.store.publish.submit")}
</button>
{publishResult === "ok" && <p className="ts-options-subtitle">{t("design.store.publish.success")}</p>}
{publishResult === "error" && <p className="ts-options-subtitle">{t("design.store.publish.error")}</p>}
</>
)}
</>
)}
<div className="ts-dialog-buttons-right">
<button onClick={onClose}>{t("design.store.back")}</button>
</div>
</>
);
}