diff --git a/src/App.vue b/src/App.vue index 0d08b4d637..16c566ba37 100644 --- a/src/App.vue +++ b/src/App.vue @@ -129,8 +129,6 @@ onUnmounted(() => { .app-content { display: flex; flex-direction: column; - padding: 0px 8px; - row-gap: 8px; .clamped { display: -webkit-box !important; diff --git a/src/components/Base/modules/HeaderBar.vue b/src/components/Base/modules/HeaderBar.vue index f241d900c5..c647c0e3a2 100644 --- a/src/components/Base/modules/HeaderBar.vue +++ b/src/components/Base/modules/HeaderBar.vue @@ -43,7 +43,6 @@ function toggleClamp() { } .header_bar { - margin-inline: -8px; padding-inline: 56px 8px; background-color: var(--color-main-background); transition: all var(--animation-slow) linear; @@ -88,7 +87,7 @@ function toggleClamp() { } .header_bar_bottom { - margin-bottom: 1rem; + padding-bottom: 1rem; } [class*='bar_'] { diff --git a/src/components/Base/modules/IntersectionObserver.vue b/src/components/Base/modules/IntersectionObserver.vue index 067b39c98e..790a0fd034 100644 --- a/src/components/Base/modules/IntersectionObserver.vue +++ b/src/components/Base/modules/IntersectionObserver.vue @@ -8,6 +8,12 @@ import { onBeforeUnmount, onMounted, ref } from 'vue' import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon' // const model = ref(false) +interface Props { + orientation?: 'horizontal' | 'vertical' + loading?: boolean +} +const { orientation = 'horizontal', loading = false } = defineProps() + const model = defineModel() const observer = ref(null) @@ -15,8 +21,6 @@ const observer = ref(null) const observerTarget = ref(null) const emit = defineEmits(['visible', 'invisible']) -const { loading = false } = defineProps<{ loading?: boolean }>() - onMounted(() => { const observer = new IntersectionObserver((entries) => { entries.forEach((entry) => { @@ -41,8 +45,26 @@ onBeforeUnmount(() => { + + diff --git a/src/components/Base/modules/StickyDiv.vue b/src/components/Base/modules/StickyDiv.vue index 2c5b10833d..e14b7f9a5d 100644 --- a/src/components/Base/modules/StickyDiv.vue +++ b/src/components/Base/modules/StickyDiv.vue @@ -7,19 +7,48 @@ import { computed } from 'vue' interface Props { - stickyTop?: boolean - stickyLeft?: boolean activateBottomShadow?: boolean activateRightShadow?: boolean + stickyTop?: boolean + stickyLeft?: boolean + zIndex?: number } const { - stickyTop = false, - stickyLeft = false, activateBottomShadow = false, activateRightShadow = false, + stickyTop = false, + stickyLeft = false, + zIndex = undefined, } = defineProps() +const style = computed(() => { + if (zIndex !== undefined && zIndex !== null) { + return { + 'z-index': zIndex, + } + } + if (stickyTop && stickyLeft) { + return { + 'z-index': 6, + } + } + + if (stickyLeft) { + return { + 'z-index': 5, + } + } + + if (stickyTop) { + return { + 'z-index': 4, + } + } + + return {} +}) + const stickyClass = computed(() => ({ container: true, 'sticky-top': stickyTop, @@ -30,7 +59,7 @@ const stickyClass = computed(() => ({