Skip to content

Commit e92d8c8

Browse files
committed
style(admin): nowrap for challenge edit page
1 parent 5b23a7f commit e92d8c8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/GZCTF/ClientApp/src/components/admin/WithChallengeEdit.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const WithChallengeEdit: FC<GameEditTabProps> = (props) => {
4848
<WithGameEditTab isLoading={isLoading} {...rest}>
4949
<Stack mih="calc(100vh - 12rem)" justify="space-between">
5050
{children}
51-
<Group justify="space-between" w="100%">
51+
<Group justify="space-between" w="100%" wrap="nowrap">
5252
<Button
5353
justify="space-between"
5454
disabled={isLoading || !previous}
@@ -58,12 +58,16 @@ const WithChallengeEdit: FC<GameEditTabProps> = (props) => {
5858
{t('admin.button.challenges.previous')}
5959
</Button>
6060

61-
<Group justify="space-between" gap="xs">
62-
<Text c="dimmed">{previous?.title ?? ''}</Text>
63-
<Text fw="bold" c={color(current)}>
61+
<Group justify="space-between" gap="xs" wrap="nowrap" maw="calc(100% - 16rem)">
62+
<Text c="dimmed" truncate>
63+
{previous?.title ?? ''}
64+
</Text>
65+
<Text fw="bold" c={color(current)} truncate>
6466
{current?.title ?? ''}
6567
</Text>
66-
<Text c="dimmed">{next?.title ?? ''}</Text>
68+
<Text c="dimmed" truncate>
69+
{next?.title ?? ''}
70+
</Text>
6771
</Group>
6872

6973
<Button

0 commit comments

Comments
 (0)