Skip to content

Commit 1f4d2df

Browse files
committed
make edition modal footer sticky
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 0e3a2e6 commit 1f4d2df

File tree

1 file changed

+35
-28
lines changed

1 file changed

+35
-28
lines changed

src/components/DaemonConfig/ManageDaemonConfigModal.vue

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -273,28 +273,27 @@
273273
</div>
274274
</template>
275275
</div>
276-
277-
<div class="row">
278-
<NcButton
279-
variant="primary"
280-
:disabled="cannotRegister"
281-
@click="isEdit ? updateDaemon() : registerDaemon()">
282-
{{ isEdit ? t('app_api', 'Save') : t('app_api', 'Register') }}
283-
<template #icon>
284-
<NcLoadingIcon v-if="registeringDaemon" :size="20" />
285-
<Check v-else :size="20" />
286-
</template>
287-
</NcButton>
288-
<NcButton variant="secondary" @click="verifyDaemonConnection">
289-
{{ t('app_api', 'Check connection') }}
290-
<template #icon>
291-
<NcLoadingIcon v-if="verifyingDaemonConnection" :size="20" />
292-
<Connection v-else :size="20" />
293-
</template>
294-
</NcButton>
295-
</div>
296276
</form>
297277
</div>
278+
<div class="row footer">
279+
<NcButton
280+
variant="primary"
281+
:disabled="cannotRegister"
282+
@click="isEdit ? updateDaemon() : registerDaemon()">
283+
{{ isEdit ? t('app_api', 'Save') : t('app_api', 'Register') }}
284+
<template #icon>
285+
<NcLoadingIcon v-if="registeringDaemon" :size="20" />
286+
<Check v-else :size="20" />
287+
</template>
288+
</NcButton>
289+
<NcButton variant="secondary" @click="verifyDaemonConnection">
290+
{{ t('app_api', 'Check connection') }}
291+
<template #icon>
292+
<NcLoadingIcon v-if="verifyingDaemonConnection" :size="20" />
293+
<Connection v-else :size="20" />
294+
</template>
295+
</NcButton>
296+
</div>
298297
</NcModal>
299298
</div>
300299
</template>
@@ -748,14 +747,6 @@ export default {
748747
text-decoration: underline;
749748
}
750749
751-
.row {
752-
display: flex;
753-
justify-content: space-between;
754-
align-items: end;
755-
margin-top: 10px;
756-
gap: 4px;
757-
}
758-
759750
.row-switch {
760751
display: flex;
761752
justify-content: space-between;
@@ -803,6 +794,22 @@ export default {
803794
margin: 0 !important;
804795
}
805796
}
797+
798+
.row {
799+
display: flex;
800+
justify-content: space-between;
801+
align-items: end;
802+
margin-top: 10px;
803+
gap: 4px;
804+
}
805+
806+
.footer {
807+
position: sticky;
808+
bottom: 0;
809+
background-color: var(--color-main-background);
810+
padding: 20px;
811+
margin: 0;
812+
}
806813
</style>
807814
808815
<style lang="scss">

0 commit comments

Comments
 (0)