fix: visual issues (footer floating, table elements overflowing each others)
This commit is contained in:
1 parent
b39a41be88
commit
63c0aec444
3 files changed
+13
-7
No files matched your search
@@ -51,8 +51,10 @@ const props = withDefaults(
|
|||||||
|
|
||||||
const COMPACT_BODY = 'gap-0 px-4 pt-4 pb-22 sm:gap-0 sm:px-4 sm:pt-4 sm:pb-22 lg:p-6'
|
const COMPACT_BODY = 'gap-0 px-4 pt-4 pb-22 sm:gap-0 sm:px-4 sm:pt-4 sm:pb-22 lg:p-6'
|
||||||
const DEFAULT_BODY = 'gap-0 px-4 pt-5 pb-22 sm:gap-0 sm:px-4 sm:pt-5 sm:pb-22 lg:p-8'
|
const DEFAULT_BODY = 'gap-0 px-4 pt-5 pb-22 sm:gap-0 sm:px-4 sm:pt-5 sm:pb-22 lg:p-8'
|
||||||
const COMPACT_STICKY_BODY = 'gap-0 px-4 pt-4 pb-0 sm:gap-0 sm:px-4 sm:pt-4 sm:pb-0 lg:p-6'
|
const COMPACT_STICKY_BODY =
|
||||||
const STICKY_FOOTER_BODY = 'gap-0 px-4 pt-5 pb-0 sm:gap-0 sm:px-4 sm:pt-5 sm:pb-0 lg:p-8'
|
'gap-0 px-4 pt-4 pb-0 sm:gap-0 sm:px-4 sm:pt-4 sm:pb-0 lg:px-6 lg:pt-6 lg:pb-0'
|
||||||
|
const STICKY_FOOTER_BODY =
|
||||||
|
'gap-0 px-4 pt-5 pb-0 sm:gap-0 sm:px-4 sm:pt-5 sm:pb-0 lg:px-8 lg:pt-8 lg:pb-0'
|
||||||
|
|
||||||
const bodyUi = computed(() => {
|
const bodyUi = computed(() => {
|
||||||
if (props.fullBleed) {
|
if (props.fullBleed) {
|
||||||
|
|||||||
@@ -123,7 +123,11 @@ function typeOf(typeKey?: string) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div :role="mobile ? undefined : 'grid'" :aria-label="t('Content permissions')">
|
<div
|
||||||
|
:role="mobile ? undefined : 'grid'"
|
||||||
|
:aria-label="t('Content permissions')"
|
||||||
|
class="overflow-x-auto"
|
||||||
|
>
|
||||||
<p class="sr-only" role="status" aria-live="polite" data-testid="grid-live-region">
|
<p class="sr-only" role="status" aria-live="polite" data-testid="grid-live-region">
|
||||||
{{ announcement }}
|
{{ announcement }}
|
||||||
</p>
|
</p>
|
||||||
@@ -131,7 +135,7 @@ function typeOf(typeKey?: string) {
|
|||||||
<template v-if="!mobile">
|
<template v-if="!mobile">
|
||||||
<div
|
<div
|
||||||
role="row"
|
role="row"
|
||||||
class="grid grid-cols-[minmax(7.5rem,1fr)_7.375rem_5.25rem_7.375rem_7.375rem_7.375rem] items-center gap-2 border-b border-default bg-elevated px-3 py-2 text-sm font-medium text-muted"
|
class="grid min-w-max grid-cols-[minmax(7.5rem,1fr)_11.5rem_5.25rem_11.5rem_11.5rem_11.5rem] items-center gap-2 border-b border-default bg-elevated px-3 py-2 text-sm font-medium text-muted"
|
||||||
>
|
>
|
||||||
<span role="columnheader">{{ t('Content type') }}</span>
|
<span role="columnheader">{{ t('Content type') }}</span>
|
||||||
<span v-for="column in columns" :key="column.action" role="columnheader">{{
|
<span v-for="column in columns" :key="column.action" role="columnheader">{{
|
||||||
@@ -143,7 +147,7 @@ function typeOf(typeKey?: string) {
|
|||||||
:key="row.typeKey ?? 'all'"
|
:key="row.typeKey ?? 'all'"
|
||||||
role="row"
|
role="row"
|
||||||
:data-testid="row.typeKey === undefined ? 'row-all' : `row-${row.typeKey}`"
|
:data-testid="row.typeKey === undefined ? 'row-all' : `row-${row.typeKey}`"
|
||||||
class="grid grid-cols-[minmax(7.5rem,1fr)_7.375rem_5.25rem_7.375rem_7.375rem_7.375rem] items-center gap-2 border-b border-default px-3 py-2"
|
class="grid min-w-max grid-cols-[minmax(7.5rem,1fr)_11.5rem_5.25rem_11.5rem_11.5rem_11.5rem] items-center gap-2 border-b border-default px-3 py-2"
|
||||||
>
|
>
|
||||||
<span role="rowheader" class="flex flex-col gap-0.5">
|
<span role="rowheader" class="flex flex-col gap-0.5">
|
||||||
<span class="font-medium text-highlighted">{{ row.name }}</span>
|
<span class="font-medium text-highlighted">{{ row.name }}</span>
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ onMounted(editor.load)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<DashboardShell compact-padding>
|
<DashboardShell compact-padding sticky-footer>
|
||||||
<template #breadcrumb>
|
<template #breadcrumb>
|
||||||
<UBreadcrumb
|
<UBreadcrumb
|
||||||
:items="[
|
:items="[
|
||||||
@@ -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">
|
<div v-if="footerVisible" class="sticky bottom-0 z-10 -mx-4 mt-4 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