@@ -16,8 +16,8 @@ SPDX-License-Identifier: AGPL-3.0-only
16
16
<template #header>
17
17
{{ mode === 'create' ? i18n.ts._abuseReport._notificationRecipient.createRecipient : i18n.ts._abuseReport._notificationRecipient.modifyRecipient }}
18
18
</template>
19
- <div v-if="loading === 0">
20
- <MkSpacer :marginMin="20" :marginMax="28">
19
+ <div v-if="loading === 0" style="display: flex; flex-direction: column; min-height: 100%;" >
20
+ <MkSpacer :marginMin="20" :marginMax="28" style="flex-grow: 1;" >
21
21
<div :class="$style.root" class="_gaps_m">
22
22
<MkInput v-model="title">
23
23
<template #label>{{ i18n.ts.title }}</template>
@@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
44
44
{{ webhook.name }}
45
45
</option>
46
46
</MkSelect>
47
- <MkButton rounded @click="onEditSystemWebhookClicked">
47
+ <MkButton rounded :class="$style.systemWebhookEditButton" @click="onEditSystemWebhookClicked">
48
48
<span v-if="systemWebhookId === null" class="ti ti-plus" style="line-height: normal"/>
49
49
<span v-else class="ti ti-settings" style="line-height: normal"/>
50
50
</MkButton>
@@ -60,8 +60,8 @@ SPDX-License-Identifier: AGPL-3.0-only
60
60
</MkSpacer>
61
61
62
62
<div :class="$style.footer" class="_buttonsCenter">
63
- <MkButton primary :disabled="disableSubmitButton" @click="onSubmitClicked"><i class="ti ti-check"></i> {{ i18n.ts.ok }}</MkButton>
64
- <MkButton @click="onCancelClicked"><i class="ti ti-x"></i> {{ i18n.ts.cancel }}</MkButton>
63
+ <MkButton primary rounded :disabled="disableSubmitButton" @click="onSubmitClicked"><i class="ti ti-check"></i> {{ i18n.ts.ok }}</MkButton>
64
+ <MkButton rounded @click="onCancelClicked"><i class="ti ti-x"></i> {{ i18n.ts.cancel }}</MkButton>
65
65
</div>
66
66
</div>
67
67
<div v-else>
@@ -289,10 +289,15 @@ onMounted(async () => {
289
289
}
290
290
291
291
.footer {
292
- display: flex;
293
- justify-content: center;
294
- align-items: flex-end;
295
- margin-top: 20px;
292
+ position: sticky;
293
+ z-index: 10000;
294
+ bottom: 0;
295
+ left: 0;
296
+ padding: 12px;
297
+ border-top: solid 0.5px var(--divider);
298
+ background: var(--acrylicBg);
299
+ -webkit-backdrop-filter: var(--blur, blur(15px));
300
+ backdrop-filter: var(--blur, blur(15px));
296
301
}
297
302
298
303
.systemWebhook {
@@ -301,16 +306,16 @@ onMounted(async () => {
301
306
justify-content: stretch;
302
307
align-items: flex-end;
303
308
gap: 8px;
309
+ }
304
310
305
- button {
306
- min-width: 0;
307
- min-height: 0;
308
- width: 34px;
309
- height: 34px;
310
- flex-shrink: 0;
311
- box-sizing: border-box;
312
- margin: 1px 0;
313
- padding: 6px;
314
- }
311
+ .systemWebhookEditButton {
312
+ min-width: 0;
313
+ min-height: 0;
314
+ width: 34px;
315
+ height: 34px;
316
+ flex-shrink: 0;
317
+ box-sizing: border-box;
318
+ margin: 1px 0;
319
+ padding: 6px;
315
320
}
316
321
</style>
0 commit comments