Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: remove unnecessary padding

DarkPhoenix27048ef5e70e0f99
diff --git a/packages/nc-gui/components/shared-view/Grid.vue b/packages/nc-gui/components/shared-view/Grid.vue
index 1466b7b408..5a06cd6857 100644
--- a/packages/nc-gui/components/shared-view/Grid.vue
+++ b/packages/nc-gui/components/shared-view/Grid.vue
@@ -31,6 +31,12 @@ useProvideSmartsheetLtarHelpers(meta)
useViewRowColorProvider({ shared: true })
+const router = useRouter()
+
+const disableToolbar = computed(
+ () => router.currentRoute.value.query?.disableToolbar === 'true' || router.currentRoute.value.query?.disableTopbar === 'true',
+)
+
if (signedIn.value) {
try {
await loadProject()
@@ -50,7 +56,12 @@ watch(
</script>
<template>
- <div class="nc-container flex flex-col h-full">
+ <div
+ :class="{
+ 'pb-2': !disableToolbar,
+ }"
+ class="nc-container flex flex-col h-full"
+ >
<LazySmartsheetToolbar />
<LazySmartsheetGrid />
</div>
@@ -59,7 +70,6 @@ watch(
<style scoped>
.nc-container {
height: 100%;
- padding-bottom: 0.5rem;
flex: 1 1 100%;
}
</style>
diff --git a/packages/nc-gui/layouts/shared-view.vue b/packages/nc-gui/layouts/shared-view.vue
index bc82eb64d0..47c2d2ab02 100644
--- a/packages/nc-gui/layouts/shared-view.vue
+++ b/packages/nc-gui/layouts/shared-view.vue
@@ -110,6 +110,7 @@ export default {
class="nc-shared-view-container w-full overflow-hidden"
:class="{
'nc-shared-mobile-view': isMobileMode,
+ 'disable-topbar': disableTopbar,
}"
>
<slot />
@@ -132,10 +133,20 @@ export default {
}
.nc-shared-view-container {
- height: calc(100vh - (var(--topbar-height) - 3.6px));
+ &:not(.disable-topbar) {
+ height: calc(100vh - (var(--topbar-height) - 3.6px));
- @supports (height: 100dvh) {
- height: calc(100dvh - (var(--topbar-height) - 3.6px));
+ @supports (height: 100dvh) {
+ height: calc(100dvh - (var(--topbar-height) - 3.6px));
+ }
+ }
+
+ &.disable-topbar {
+ height: 100vh;
+
+ @supports (height: 100dvh) {
+ height: 100dvh;
+ }
}
}
}