Skip to content

Commit

Permalink
Update switches layout (minmatarfleet#695)
Browse files Browse the repository at this point in the history
* Hide mumble section and notifications for non fleet pilots

* Update switches layout
  • Loading branch information
beautifulmim authored Sep 6, 2024
1 parent 98d6f2d commit 56fd147
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions frontend/app/src/components/blocks/SwitchSquare.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import Flexblock from '@components/compositions/Flexblock.astro';
import FluidFixed from '@components/compositions/FluidFixed.astro';
import TextGroup from '@components/blocks/TextGroup.astro';
Expand All @@ -20,9 +21,12 @@ const {
<label class="[ switch ][ w-full ]">
<FluidFixed width='46px' breakpoint='80%' class="[ items-center ]">
<div class="[ w-full ]">
<TextGroup title={label}>
{description}
</TextGroup>
<Flexblock gap='0'>
{label &&
<span class="[ text-[var(--highlight)] ]">{label}</span>
}
<small {...attributes}>{description}</small>
</Flexblock>
</div>

<div>
Expand Down Expand Up @@ -91,6 +95,10 @@ const {
[disabled] + .slider {
filter: saturate(50%);
}

small {
font-weight: 400;
}
}

.switch svg {
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/pages/account.astro
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const page_title = t('account.page_title');
}
}`}
>
<TextGroup title={t('unregister_account')}>
<TextGroup title={t('unregister_account')} gap='0'>
{t('unregister_account_description')}
</TextGroup>
<Button
Expand Down

0 comments on commit 56fd147

Please sign in to comment.