Align theme preview with real themed banner styles

Fix button layout in ThemePreview to match the actual themed-banner:
wrap buttons in spans to mimic custom element wrappers (preventing
flex: 1 from stretching them), use correct padding/background/max-width,
and set explicit line-height: normal. Also clean up dead flex properties
in themed-banner styles.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-22 11:16:59 +04:00
parent ae68196d76
commit 9510d91c61
2 changed files with 63 additions and 61 deletions

View File

@@ -129,8 +129,6 @@ export const THEMED_STYLES = `
}
.btn {
flex: 1;
min-width: 0;
padding: 8px 10px;
border-radius: var(--_btn-radius);
border: 1px solid var(--_border);
@@ -139,6 +137,7 @@ export const THEMED_STYLES = `
font-family: var(--_font);
font-size: var(--_font-size);
font-weight: 500;
line-height: normal;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
white-space: nowrap;