Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Split VHeader into VHeaderDesktop and VHeaderMobile components (#1845)
Browse files Browse the repository at this point in the history
* Refactor SearchTypePopover for desktop header

* Add VHeaderDesktop docstrings
  • Loading branch information
obulat authored Oct 1, 2022
1 parent e44fb70 commit c0b0772
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 439 deletions.
87 changes: 0 additions & 87 deletions src/components/VContentSwitcher/VMobileMenuModal.vue

This file was deleted.

9 changes: 5 additions & 4 deletions src/components/VHeader/VHeaderDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<VSearchBar
v-model.trim="searchTerm"
class="flex-grow"
class="flex-grow me-4"
size="medium"
@submit="handleSearch"
>
Expand Down Expand Up @@ -40,7 +40,6 @@
</VTeleport>
</header>
</template>

<script lang="ts">
import {
computed,
Expand Down Expand Up @@ -80,6 +79,9 @@ import VSearchTypePopover from '~/components/VContentSwitcher/VSearchTypePopover
import closeIcon from '~/assets/icons/close.svg'
/**
* The desktop search header.
*/
export default defineComponent({
name: 'VHeaderDesktop',
components: {
Expand Down Expand Up @@ -248,8 +250,7 @@ export default defineComponent({
selectSearchType,
searchStatus,
searchTerm,
sidebarVisibleRef: sidebarVisibleRef,
sidebarVisibleRef,
toggleSidebar,
onTab,
}
Expand Down
170 changes: 0 additions & 170 deletions src/components/VHeader/VHeaderFilter.vue

This file was deleted.

101 changes: 0 additions & 101 deletions src/components/VHeader/VHeaderMenu.vue

This file was deleted.

Loading

0 comments on commit c0b0772

Please sign in to comment.