Skip to content

Commit 69f4b7d

Browse files
committed
fix(settings): center unsaved changes bar
1 parent 6b25b29 commit 69f4b7d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/pages/settings/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@
225225
</div>
226226
</div>
227227

228-
<div class="pointer-events-none fixed inset-x-0 bottom-4 z-header flex justify-center px-4 sm:px-6">
229-
<div class="w-full max-w-5xl flex justify-center sm:justify-end">
228+
<Teleport to="body">
229+
<div class="pointer-events-none fixed inset-x-0 bottom-4 z-header flex justify-center px-4 sm:px-6">
230230
<Transition
231231
enterActiveClass="transition duration-200 ease-out"
232232
enterFromClass="opacity-0 translate-y-2"
@@ -237,7 +237,7 @@
237237
>
238238
<div
239239
v-if="isDirty"
240-
class="pointer-events-auto flex items-center gap-3 rounded-full border border-neutral-200/80 dark:border-neutral-700/80 bg-white/95 dark:bg-neutral-900/95 backdrop-blur py-2 pl-4 pr-2 shadow-xl mr-14 sm:mr-16 xl:mr-0"
240+
class="pointer-events-auto flex items-center gap-3 rounded-full border border-neutral-200/80 dark:border-neutral-700/80 bg-white/95 dark:bg-neutral-900/95 backdrop-blur py-2 pl-4 pr-2 shadow-xl"
241241
>
242242
<span class="flex items-center gap-2 text-xs font-medium text-neutral-500 dark:text-neutral-400">
243243
<span class="size-2 rounded-full bg-amber-500 animate-pulse" />
@@ -254,7 +254,7 @@
254254
</div>
255255
</Transition>
256256
</div>
257-
</div>
257+
</Teleport>
258258

259259
<ModalMini ref="discardDialog" />
260260
</main>

0 commit comments

Comments
 (0)