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

Commit

Permalink
Increase horizontal padding in mobile search grid (#2144)
Browse files Browse the repository at this point in the history
Co-authored-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
dhruvkb and obulat committed Feb 8, 2023
1 parent 184d88d commit 1283e63
Show file tree
Hide file tree
Showing 19 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/search.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<VSkipToContentContainer
class="browse-page flex w-full flex-col px-4 md:px-10"
class="browse-page flex w-full flex-col"
:class="[isNewHeaderEnabled ? 'px-6 lg:px-10' : 'px-4 md:px-10']"
>
<VSearchGrid
ref="searchGridRef"
Expand Down Expand Up @@ -39,6 +40,7 @@ import { computed, defineComponent, inject, ref } from "@nuxtjs/composition-api"
import { Focus, focusIn } from "~/utils/focus-management"
import { useMediaStore } from "~/stores/media"
import { useSearchStore } from "~/stores/search"
import { useFeatureFlagStore } from "~/stores/feature-flag"
import { IsSidebarVisibleKey } from "~/types/provides"
import VSearchGrid from "~/components/VSearchGrid.vue"
Expand Down Expand Up @@ -83,6 +85,7 @@ export default defineComponent({
const isSidebarVisible = inject(IsSidebarVisibleKey)
const mediaStore = useMediaStore()
const searchStore = useSearchStore()
const featureFlagStore = useFeatureFlagStore()
// I don't know *exactly* why this is necessary, but without it
// transitioning from the homepage to this page breaks the
Expand All @@ -107,6 +110,10 @@ export default defineComponent({
)
)
const isNewHeaderEnabled = computed(() =>
featureFlagStore.isOn("new_header")
)
return {
searchGridRef,
showScrollButton,
Expand All @@ -120,6 +127,8 @@ export default defineComponent({
resultItems,
needsFetching,
isSidebarVisible,
isNewHeaderEnabled,
}
},
/**
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1283e63

Please sign in to comment.