Skip to content

Commit

Permalink
Make the locale picker fit a bit better
Browse files Browse the repository at this point in the history
Refs #2044
  • Loading branch information
thewilkybarkid committed Oct 25, 2024
1 parent 6b482d5 commit 59c1f77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2734,3 +2734,27 @@ skip-link {
float: inline-end;
}
}

locale-picker {
div:has(&) {
display: flex;
flex-wrap: wrap;
column-gap: var(--space-2xs);
}

:--list {
display: inline-flex;
flex-wrap: wrap;
margin-block-start: 0;
padding-inline-start: var(--space-xs);
column-gap: var(--space-2xs);
list-style-type: none;
row-gap: var(--space-3xs-2xs);

& li {
&:not(:first-child) {
margin-block-start: 0;
}
}
}
}
2 changes: 1 addition & 1 deletion src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export function page({
${canChooseLocale === true
? html`
<div>
<p>Choose your language:</p>
<span>Choose your language:</span>
<locale-picker>
<ul>
Expand Down

0 comments on commit 59c1f77

Please sign in to comment.