Skip to content

Commit 6808fb6

Browse files
committed
fix: remove duplicate flex-1 class...
1 parent 1d205f6 commit 6808fb6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/components/AppHeader.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ onKeyStroke(
110110

111111
<!-- Center: Search bar + nav items -->
112112
<div
113-
class="flex items-center justify-center md:gap-6"
114-
:class="isSearchExpanded ? 'flex-1' : 'flex-1 hidden sm:flex'"
113+
class="flex-1 flex items-center justify-center md:gap-6"
114+
:class="{ 'hidden sm:flex': !isSearchExpanded }"
115115
>
116116
<!-- Search bar (hidden on mobile unless expanded) -->
117117
<SearchBox
118118
ref="searchBoxRef"
119119
:inputClass="isSearchExpanded ? 'w-full' : ''"
120-
:class="isSearchExpanded ? 'flex-1' : 'flex-1 max-w-md'"
120+
:class="{ 'max-w-md': !isSearchExpanded }"
121121
@focus="handleSearchFocus"
122122
@blur="handleSearchBlur"
123123
/>

0 commit comments

Comments
 (0)