@@ -80,31 +80,31 @@ const onSubmit = async () => {
8080 </script >
8181<template >
8282 <div class =" content" >
83- <form class =" form" ref =" formRef" @submit.prevent @keyup.enter =" () => onSubmit()" >
84- <text-input :disabled =" isLoading" name =" user" v-model =" principal.user" :help =" t('calDAVForm.help.user')" :required =" true" >
85- {{ t('label.username') }}
86- </text-input >
87- <text-input :disabled =" isLoading" :placeholder =" locationPreview" name =" url" :help =" t('calDAVForm.help.location')" v-model =" principal.url" >
88- {{ t('label.location') }}
89- </text-input >
90- <text-input :disabled =" isLoading" type =" password" name =" password" :help =" t('calDAVForm.help.password')" v-model =" principal.password" >
91- {{ t('label.password') }}
92- </text-input >
93- </form >
94- <div class =" buttons" >
95- <primary-button variant =" outline" class =" btn-switch" @click =" emits('switch')" v-if =" showSwitch" >
96- {{ t('calDAVForm.switchToGoogleCalendar') }}
97- </primary-button >
98- <primary-button variant =" outline" @click =" emits('previous')" v-if =" showPrevious" >
99- {{ t('label.back') }}
100- </primary-button >
101- <primary-button
102- :label =" t('label.connect')"
103- :disabled =" isLoading"
104- @click =" onSubmit"
105- >{{ t('label.connect') }}</primary-button >
106- </div >
83+ <form class =" form" ref =" formRef" @submit.prevent @keyup.enter =" () => onSubmit()" >
84+ <text-input :disabled =" isLoading" name =" user" v-model =" principal.user" :help =" t('calDAVForm.help.user')" :required =" true" >
85+ {{ t('label.username') }}
86+ </text-input >
87+ <text-input :disabled =" isLoading" :placeholder =" locationPreview" name =" url" :help =" t('calDAVForm.help.location')" v-model =" principal.url" >
88+ {{ t('label.location') }}
89+ </text-input >
90+ <text-input :disabled =" isLoading" type =" password" name =" password" :help =" t('calDAVForm.help.password')" v-model =" principal.password" >
91+ {{ t('label.password') }}
92+ </text-input >
93+ </form >
94+ <div class =" buttons" >
95+ <primary-button variant =" outline" class =" btn-switch" @click =" emits('switch')" v-if =" showSwitch" >
96+ {{ t('calDAVForm.switchToGoogleCalendar') }}
97+ </primary-button >
98+ <primary-button variant =" outline" @click =" emits('previous')" v-if =" showPrevious" >
99+ {{ t('label.back') }}
100+ </primary-button >
101+ <primary-button
102+ :label =" t('label.connect')"
103+ :disabled =" isLoading"
104+ @click =" onSubmit"
105+ >{{ t('label.connect') }}</primary-button >
107106 </div >
107+ </div >
108108</template >
109109<style scoped>
110110@import ' @/assets/styles/custom-media.pcss' ;
@@ -123,25 +123,20 @@ const onSubmit = async () => {
123123 margin : auto ;
124124}
125125.btn-switch {
126- margin-left : 2rem ;
127126 margin-right : auto ;
128127}
129128.buttons {
130129 display : flex ;
130+ flex-direction : column ;
131131 width : 100% ;
132132 gap : 1rem ;
133133 justify-content : center ;
134- margin-top : 2rem ;
135- left : auto ;
136- right : auto ;
134+ margin-block-end : 2rem ;
137135}
138136@media (--md) {
139137 .buttons {
138+ flex-direction : row ;
140139 justify-content : flex-end ;
141- position : absolute ;
142- right : 2rem ;
143- bottom : 5.75rem ;
144- margin : 0 ;
145140 }
146141}
147142 </style >
0 commit comments