Skip to content

Commit

Permalink
Make header buttons smaller (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
scastiel committed Aug 2, 2024
1 parent 26bed11 commit 5dfe03b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"title": "Settings"
},
"Locale": {
"en-US": "English (US)",
"en-US": "English",
"fi": "Suomi"
},
"Share": {
Expand Down
2 changes: 1 addition & 1 deletion messages/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"title": "Asetukset"
},
"Locale": {
"en-US": "English (US)",
"en-US": "English",
"fi": "Suomi"
},
"Share": {
Expand Down
7 changes: 6 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ function Content({ children }: { children: React.ReactNode }) {
<div role="navigation" aria-label="Menu" className="flex">
<ul className="flex items-center text-sm">
<li>
<Button variant="ghost" asChild className="-my-3 text-primary">
<Button
variant="ghost"
size="sm"
asChild
className="-my-3 text-primary"
>
<Link href="/groups">{t('Header.groups')}</Link>
</Button>
</li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/locale-switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function LocaleSwitcher() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" asChild className="-my-3 text-primary">
<Button variant="ghost" size="sm" className="-my-3 text-primary">
<span>{t(locale)}</span>
</Button>
</DropdownMenuTrigger>
Expand Down

0 comments on commit 5dfe03b

Please sign in to comment.