From 9259615a342ec4220e7a42f4f812eb9e0d63de4b Mon Sep 17 00:00:00 2001 From: elweyn Date: Thu, 16 Mar 2023 12:08:56 +0100 Subject: [PATCH] Style changes for the action buttons --- .../ContributionForm/ContributionForm.vue | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 5757d72b5..6114106dc 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -74,8 +74,8 @@ /> - - + + {{ $t('actions.cancel') }} - - {{ $t('actions.save') }} @@ -310,9 +308,45 @@ export default { } > .buttons-footer { + justify-content: flex-end; align-self: flex-end; - width: 85%; + width: 100%; margin-top: $space-base; + + > .action-buttons-group { + margin-left: auto; + display: flex; + justify-content: flex-end; + + > button { + margin-left: 1em; + min-width: fit-content; + } + } + } + + @media screen and (max-width: 656px) { + > .buttons-footer { + flex-direction: column; + margin-top: 5px; + + > .action-buttons-group { + > button { + margin-left: 1em; + } + } + } + } + + @media screen and (max-width: 280px) { + > .buttons-footer { + > .action-buttons-group { + flex-direction: column; + > button { + margin-bottom: 5px; + } + } + } } .blur-toggle {