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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user