The validation button area no longer causes the event page to scroll in mobile view

This commit is contained in:
Massedil 2024-10-11 14:25:56 +02:00
parent 4d9d6b02b6
commit 3401a7dd85

View file

@ -540,20 +540,25 @@
v-if="hasCurrentActorPermissionsToEdit"
>
<div class="container mx-auto">
<div class="flex justify-between items-center">
<span class="dark:text-gray-900" v-if="isEventModified">
<div class="lg:flex lg:justify-between lg:items-center lg:flex-wrap">
<div
class="text-red-900 text-center w-full margin m-1 lg:m-0 lg:w-auto lg:text-left"
v-if="isEventModified"
>
{{ t("Unsaved changes") }}
</span>
</div>
<div class="flex flex-wrap gap-3 items-center justify-end">
<o-button
expanded
variant="text"
@click="confirmGoBack"
class="dark:!text-black ml-auto"
>{{ t("Cancel") }}</o-button
>
<!-- If an event has been published we can't make it draft anymore -->
<span class="" v-if="event.draft === true">
<o-button
v-if="event.draft === true"
expanded
variant="primary"
class="!text-black hover:!text-white"
outlined
@ -561,9 +566,8 @@
:disabled="saving"
>{{ t("Save draft") }}</o-button
>
</span>
<span class="ml-auto">
<o-button
expanded
variant="primary"
:disabled="saving"
@click="createOrUpdatePublish"
@ -573,7 +577,6 @@
<span v-else-if="event.draft === true">{{ t("Publish") }}</span>
<span v-else>{{ t("Update my event") }}</span>
</o-button>
</span>
</div>
</div>
</div>