Skip to content

Commit

Permalink
Change empathize layout for mobile devices (#445)
Browse files Browse the repository at this point in the history
* style: Rm x-layout-stack class when no query, add spacing to keep consistency with query previews

EMP-3460

* style: Add margin top in popular searches for mobile

EMP-3460

* style: Add border bottom to identify the end of empathize

EMP-3460
  • Loading branch information
annacv authored Feb 8, 2024
1 parent 0769197 commit 5f99727
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/components/mobile/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
</div>
</div>

<div class="x-layout-stack x-layout-expand">
<div class="x-layout-expand" :class="{ 'x-layout-stack': $x.query.search }">
<LocationProvider location="predictive_layer" class="x-z-10">
<PredictiveLayer />
<PredictiveLayer
:class="{ 'x-mb-40 x-border-b x-border-neutral-10 x-pb-16': !$x.query.search }"
/>
</LocationProvider>

<!-- Results -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="x-flex x-flex-col x-gap-4">
<div class="x-mt-8 x-flex x-flex-col x-gap-4 desktop:x-mt-0">
<h1 class="x-title4 x-title4-sm x-uppercase">
{{ $t('popularSearches.title') }}
</h1>
Expand All @@ -10,7 +10,7 @@
>
<template #suggestion="{ suggestion }">
<PopularSearch
class="x-suggestion-lg x-suggestion desktop:x-suggestion-md"
class="x-suggestion x-suggestion-lg desktop:x-suggestion-md"
:suggestion="suggestion"
>
<TrendingIcon class="x-icon-lg desktop:x-icon-md" />
Expand Down

0 comments on commit 5f99727

Please sign in to comment.