Skip to content

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

fix(nc-gui): global search input width issue

Ramesh Mane970c779ac121
diff --git a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue
index 33d7055863..4e3ee896e8 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue
@@ -243,7 +243,7 @@ watch(
</template>
</NcDropdown>
- <form class="p-0" @submit.prevent>
+ <form class="p-0 flex-1 flex" @submit.prevent>
<a-input
v-if="search.query || showSearchBox"
ref="globalSearchRef"
@@ -251,7 +251,7 @@ watch(
:inputmode="searchInputMode"
name="globalSearchQuery"
size="small"
- class="!text-bodyDefaultSm !w-40 h-full nc-view-search-data !pl-0"
+ class="!text-bodyDefaultSm flex-1 md:!w-40 h-full nc-view-search-data !pl-0"
:class="{
'!pr-7': !isValidSearchQuery,
}"
diff --git a/packages/nc-gui/components/workspace/View.vue b/packages/nc-gui/components/workspace/View.vue
index bec77b25c9..e637131d9b 100644
--- a/packages/nc-gui/components/workspace/View.vue
+++ b/packages/nc-gui/components/workspace/View.vue
@@ -129,8 +129,6 @@ onBeforeUnmount(() => {
class="min-w-0 p-2 h-[var(--topbar-height)] border-b-1 border-nc-border-gray-medium flex items-center gap-2"
>
<GeneralOpenLeftSidebarBtn v-if="isMobileMode && !isLeftSidebarOpen" />
- <GeneralHideLeftSidebarBtn v-if="isMobileMode && isLeftSidebarOpen" />
-
<div
class="flex-1 nc-breadcrumb nc-no-negative-margin pl-1 nc-workspace-title"
:class="{
@@ -146,6 +144,7 @@ onBeforeUnmount(() => {
{{ $t('title.teamAndSettings') }}
</h1>
</div>
+ <GeneralHideLeftSidebarBtn v-if="isMobileMode && isLeftSidebarOpen" />
</div>
<template v-else>
<div class="nc-breadcrumb px-2">