Skip to content

Commit 949afda

Browse files
committed
feat: adjust toggle running button size
1 parent 96b34bd commit 949afda

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/app/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ import { Providers } from './providers'
88

99
import '~/styles/globals.css'
1010

11+
// for latin characters
1112
const ubuntuMonoFont = Ubuntu_Mono({
1213
subsets: ['latin', 'latin-ext', 'cyrillic', 'cyrillic-ext', 'greek', 'greek-ext'],
1314
weight: ['400', '700'],
1415
variable: '--font-ubuntu-mono'
1516
})
17+
18+
// for chinese characters
1619
const notoSansSCFont = Noto_Sans_SC({
17-
subsets: ['latin', 'latin-ext', 'cyrillic', 'vietnamese'],
20+
subsets: ['vietnamese'],
1821
variable: '--font-noto-sans'
1922
})
23+
24+
// for emojis and other characters, such as national flags
2025
const twemojiFont = localFont({
2126
src: './assets/twemoji.ttf',
2227
variable: '--font-twemoji',

src/components/Header.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,10 @@ export const Header: FC = () => {
179179
</Button>
180180
) : (
181181
<Button
182-
size="lg"
183182
isIconOnly
184183
isLoading={runMutation.isPending}
185184
color={generalQuery.data?.general.dae.running ? 'success' : 'secondary'}
186-
onPress={async () => {
187-
await runMutation.mutateAsync(!!generalQuery.data?.general.dae.running)
188-
}}
185+
onPress={() => runMutation.mutate(!!generalQuery.data?.general.dae.running)}
189186
>
190187
{generalQuery.data?.general.dae.running ? <IconNetwork /> : <IconNetworkOff />}
191188
</Button>

0 commit comments

Comments
 (0)