feat: height responsive sidebar (#2038)

This commit is contained in:
patak 2023-05-01 17:58:37 +02:00 committed by GitHub
parent 70cb620ccd
commit 656b789e7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 5 deletions

View file

@ -55,9 +55,10 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
>
<CommonTooltip :disabled="!isMediumOrLargeScreen" :content="text" placement="right">
<div
class="item"
flex items-center gap4
w-fit rounded-3
px2 py2 mx3 sm:mxa
px2 mx3 sm:mxa
xl="ml0 mr5 px5 w-auto"
transition-100
elk-group-hover="bg-active" group-focus-visible:ring="2 current"
@ -72,3 +73,22 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
</CommonTooltip>
</NuxtLink>
</template>
<style scoped>
.item {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
@media screen and ( max-height: 820px ) {
.item {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
}
@media screen and ( max-height: 720px ) {
.item {
padding-top: 0.05rem;
padding-bottom: 0.05rem;
}
}
</style>