Skip to content

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

fix(nc-gui): view height issue in mobile mode

Ramesh Mane223cf713341a
diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue
index 48535a9f7e..2e9dfd59ba 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/FieldListWithSearch.vue
@@ -135,7 +135,7 @@ const fieldSearchBasisOptions = computed<NcListSearchBasisOptionType[]>(() => [
:item-class-name="configByToolbarMenu.optionClassName"
:list="options"
:value="selectedOptionId"
- :item-height="32"
+ variant="medium"
:search-basis-options="fieldSearchBasisOptions"
@change="handleSelect"
>
diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue
index e07f487b30..94d3b0b091 100644
--- a/packages/nc-gui/components/tabs/Smartsheet.vue
+++ b/packages/nc-gui/components/tabs/Smartsheet.vue
@@ -280,10 +280,7 @@ watch(isViewsLoading, async () => {
>
<Pane class="flex flex-col h-full min-w-0" :max-size="contentMaxSize" :size="contentSize">
<SmartsheetToolbar v-if="!isForm" show-full-screen-toggle />
- <div
- :style="{ height: isForm || isMobileMode ? '100%' : 'calc(100% - var(--toolbar-height))' }"
- class="flex flex-row w-full"
- >
+ <div :style="{ height: isForm ? '100%' : 'calc(100% - var(--toolbar-height))' }" class="flex flex-row w-full">
<Transition name="layout" mode="out-in">
<div v-if="openedViewsTab === 'view'" class="flex flex-1 min-h-0 w-3/4">
<div class="h-full flex-1 min-w-0 min-h-0 bg-nc-bg-default">