Skip to content

Commit

Permalink
style(admin): nowrap for challenge edit page
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 5, 2024
1 parent 5b23a7f commit e92d8c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/GZCTF/ClientApp/src/components/admin/WithChallengeEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const WithChallengeEdit: FC<GameEditTabProps> = (props) => {
<WithGameEditTab isLoading={isLoading} {...rest}>
<Stack mih="calc(100vh - 12rem)" justify="space-between">
{children}
<Group justify="space-between" w="100%">
<Group justify="space-between" w="100%" wrap="nowrap">
<Button
justify="space-between"
disabled={isLoading || !previous}
Expand All @@ -58,12 +58,16 @@ const WithChallengeEdit: FC<GameEditTabProps> = (props) => {
{t('admin.button.challenges.previous')}
</Button>

<Group justify="space-between" gap="xs">
<Text c="dimmed">{previous?.title ?? ''}</Text>
<Text fw="bold" c={color(current)}>
<Group justify="space-between" gap="xs" wrap="nowrap" maw="calc(100% - 16rem)">
<Text c="dimmed" truncate>
{previous?.title ?? ''}
</Text>
<Text fw="bold" c={color(current)} truncate>
{current?.title ?? ''}
</Text>
<Text c="dimmed">{next?.title ?? ''}</Text>
<Text c="dimmed" truncate>
{next?.title ?? ''}
</Text>
</Group>

<Button
Expand Down

0 comments on commit e92d8c8

Please sign in to comment.