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

Commit

Permalink
Fix app layout issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida authored and obulat committed Apr 14, 2022
1 parent b52e0b4 commit 40b83b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 33 deletions.
16 changes: 1 addition & 15 deletions src/components/VFilters/VSearchGridFilter.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
class="filters py-8 px-10 min-h-full md:bg-dark-charcoal-06"
data-testid="filters-list"
>
<div class="filters py-8 px-10" data-testid="filters-list">
<div class="flex items-center justify-between mt-2 mb-6">
<h4 class="text-sr font-semibold py-2 uppercase">
{{ $t('filter-list.filter-by') }}
Expand Down Expand Up @@ -108,14 +105,3 @@ export default {
},
}
</script>
<style scoped>
.filters {
border-inline-start: 1px solid transparent;
}
@screen md {
.filters {
/* dark-charcoal-20*/
border-inline-start: 1px solid #d6d4d5;
}
}
</style>
6 changes: 3 additions & 3 deletions src/components/VHeader/VSidebarContent.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<VTeleport v-if="visible" :to="to"
><VSearchGridFilter @close="$emit('close')"
/></VTeleport>
<VTeleport v-if="visible" :to="to">
<VSearchGridFilter @close="$emit('close')" />
</VTeleport>
</template>

<script>
Expand Down
21 changes: 6 additions & 15 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<template>
<div class="app grid h-screen overflow-hidden relative">
<div>
<div class="app grid relative">
<div class="sticky top-0 block z-40">
<VTeleportTarget name="skip-to-content" :force-destroy="true" />
<VMigrationNotice v-show="isReferredFromCc" />
<VTranslationStatusBanner />
<VHeader />
</div>
<main
class="main embedded overflow-x-hidden"
:class="{ 'has-sidebar': isSidebarVisible }"
>
<main class="main embedded" :class="{ 'has-sidebar': isSidebarVisible }">
<Nuxt ref="mainContentRef" class="min-w-0 main-page" />
<VSidebarTarget class="sidebar" />
<VSidebarTarget
class="sidebar fixed pb-20 right-0 [calc(100%-81px)] bg-dark-charcoal-06 border-s border-dark-charcoal-20 overflow-y-scroll"
/>
</main>
<VModalTarget class="modal" />
<VGlobalAudioSection />
Expand Down Expand Up @@ -121,12 +120,4 @@ export default embeddedPage
grid-column: 1;
}
}
.main {
overflow: hidden;
}
.main > *:not(:empty) {
overflow-y: scroll;
height: 100%;
}
</style>

0 comments on commit 40b83b9

Please sign in to comment.