fix: sticky footer on role editor
This commit is contained in:
1 parent
89da2f6b14
commit
7a66318a73
2 files changed
+16
-3
No files matched your search
@@ -69,6 +69,19 @@ const bodyUi = computed(() => {
|
|||||||
return props.compactPadding ? COMPACT_BODY : DEFAULT_BODY
|
return props.compactPadding ? COMPACT_BODY : DEFAULT_BODY
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const contentClass = computed(() => {
|
||||||
|
if (props.fullBleed) {
|
||||||
|
return 'flex h-full min-h-0 flex-1 flex-col'
|
||||||
|
}
|
||||||
|
return props.stickyFooter ? 'flex min-h-full flex-1 flex-col' : ''
|
||||||
|
})
|
||||||
|
const innerClass = computed(() => {
|
||||||
|
if (props.fullBleed) {
|
||||||
|
return 'flex min-h-0 flex-1 flex-col'
|
||||||
|
}
|
||||||
|
return props.stickyFooter ? 'flex flex-1 flex-col' : ''
|
||||||
|
})
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const session = useSessionStore()
|
const session = useSessionStore()
|
||||||
const permissions = usePermissionsStore()
|
const permissions = usePermissionsStore()
|
||||||
@@ -420,7 +433,7 @@ function onRetry() {
|
|||||||
<template #body>
|
<template #body>
|
||||||
<div
|
<div
|
||||||
id="dashboard-content"
|
id="dashboard-content"
|
||||||
:class="fullBleed ? 'flex h-full min-h-0 flex-1 flex-col' : ''"
|
:class="contentClass"
|
||||||
>
|
>
|
||||||
<OfflineBanner
|
<OfflineBanner
|
||||||
:message="offlineMessage"
|
:message="offlineMessage"
|
||||||
@@ -436,7 +449,7 @@ function onRetry() {
|
|||||||
kind="error"
|
kind="error"
|
||||||
@retry="onRetry"
|
@retry="onRetry"
|
||||||
/>
|
/>
|
||||||
<div v-else :class="fullBleed ? 'flex min-h-0 flex-1 flex-col' : ''">
|
<div v-else :class="innerClass">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ onMounted(editor.load)
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="footerVisible" class="sticky bottom-0 z-10 -mx-4 mt-4 flex flex-col lg:-mx-6">
|
<div v-if="footerVisible" class="sticky bottom-0 z-10 -mx-4 mt-auto flex flex-col lg:-mx-6">
|
||||||
<UButton
|
<UButton
|
||||||
v-if="!isDesktop"
|
v-if="!isDesktop"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
|
|||||||
Reference in new issue
Block a user