Skip to content

Commit c7b2d2a

Browse files
refactor: handle class switch
1 parent c91e729 commit c7b2d2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/components/AppHeader.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ onKeyStroke(
145145
<SearchBox
146146
v-if="!isOnHomePage"
147147
ref="searchBoxRef"
148-
class="max-w-sm"
149-
:class="{ 'max-w-md': !isSearchExpanded }"
148+
:class="isSearchExpanded ? 'max-w-md' : 'max-w-sm'"
150149
compact
151150
v-model="searchQuery"
152151
@submit="handleSearchSubmit"

0 commit comments

Comments
 (0)