Lib: Make race-/substitution-card buttons fill the card width
This commit is contained in:
@ -164,18 +164,32 @@
|
|||||||
|
|
||||||
<!-- Save/Delete buttons -->
|
<!-- Save/Delete buttons -->
|
||||||
<div class="flex justify-end gap-2">
|
<div class="flex justify-end gap-2">
|
||||||
<Button onclick={clear_sprint} color="secondary" disabled={disable_inputs}
|
<Button onclick={clear_sprint} color="secondary" disabled={disable_inputs} width="w-1/3">
|
||||||
>Remove Sprint</Button
|
Remove Sprint
|
||||||
>
|
</Button>
|
||||||
{#if race}
|
{#if race}
|
||||||
<Button formaction="?/update_race" color="secondary" disabled={disable_inputs} submit
|
<Button
|
||||||
>Save Changes</Button
|
formaction="?/update_race"
|
||||||
|
color="secondary"
|
||||||
|
disabled={disable_inputs}
|
||||||
|
submit
|
||||||
|
width="w-1/3"
|
||||||
>
|
>
|
||||||
<Button color="primary" submit disabled={disable_inputs} formaction="?/delete_race"
|
Save Changes
|
||||||
>Delete</Button
|
</Button>
|
||||||
|
<Button
|
||||||
|
color="primary"
|
||||||
|
submit
|
||||||
|
disabled={disable_inputs}
|
||||||
|
formaction="?/delete_race"
|
||||||
|
width="w-1/3"
|
||||||
>
|
>
|
||||||
|
Delete
|
||||||
|
</Button>
|
||||||
{:else}
|
{:else}
|
||||||
<Button formaction="?/create_race" color="tertiary" submit>Create Race</Button>
|
<Button formaction="?/create_race" color="tertiary" submit width="w-1/2"
|
||||||
|
>Create Race</Button
|
||||||
|
>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -146,6 +146,7 @@
|
|||||||
color="secondary"
|
color="secondary"
|
||||||
disabled={disable_inputs}
|
disabled={disable_inputs}
|
||||||
submit
|
submit
|
||||||
|
width="w-1/2"
|
||||||
>
|
>
|
||||||
Save Changes
|
Save Changes
|
||||||
</Button>
|
</Button>
|
||||||
@ -154,11 +155,12 @@
|
|||||||
submit
|
submit
|
||||||
disabled={disable_inputs}
|
disabled={disable_inputs}
|
||||||
formaction="?/delete_substitution"
|
formaction="?/delete_substitution"
|
||||||
|
width="w-1/2"
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</Button>
|
</Button>
|
||||||
{:else}
|
{:else}
|
||||||
<Button formaction="?/create_substitution" color="tertiary" submit>
|
<Button formaction="?/create_substitution" color="tertiary" submit width="w-full">
|
||||||
Create Substitution
|
Create Substitution
|
||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user