forked from Mirrors/elk
fix: tweak sidebar max-height
This commit is contained in:
parent
5e5fb0e287
commit
52b2d12bf9
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ const useStarFavoriteIcon = usePreferences('useStarFavoriteIcon')
|
||||||
<nav sm:px3 flex="~ col gap2" shrink text-size-base leading-normal md:text-lg h-full mt-1 overflow-y-auto>
|
<nav sm:px3 flex="~ col gap2" shrink text-size-base leading-normal md:text-lg h-full mt-1 overflow-y-auto>
|
||||||
<NavSideItem :text="$t('nav.search')" to="/search" icon="i-ri:search-line" xl:hidden :command="command" />
|
<NavSideItem :text="$t('nav.search')" to="/search" icon="i-ri:search-line" xl:hidden :command="command" />
|
||||||
|
|
||||||
<div class="spacer" shrink hidden sm:block />
|
<div class="spacer" shrink xl:hidden />
|
||||||
<NavSideItem :text="$t('nav.home')" to="/home" icon="i-ri:home-5-line" user-only :command="command" />
|
<NavSideItem :text="$t('nav.home')" to="/home" icon="i-ri:home-5-line" user-only :command="command" />
|
||||||
<NavSideItem :text="$t('nav.notifications')" to="/notifications" icon="i-ri:notification-4-line" user-only :command="command">
|
<NavSideItem :text="$t('nav.notifications')" to="/notifications" icon="i-ri:notification-4-line" user-only :command="command">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
|
@ -44,7 +44,7 @@ const useStarFavoriteIcon = usePreferences('useStarFavoriteIcon')
|
||||||
.spacer {
|
.spacer {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
@media screen and ( max-height: 820px ) and ( min-width: 640px ) {
|
@media screen and ( max-height: 920px ) and ( min-width: 640px ) {
|
||||||
.spacer {
|
.spacer {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,13 +85,13 @@ const noUserVisual = computed(() => isHydrated.value && props.userOnly && !curre
|
||||||
padding-bottom: 0.25rem;
|
padding-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and ( max-height: 720px ) and ( min-width: 640px ) {
|
@media screen and ( max-height: 780px ) and ( min-width: 640px ) {
|
||||||
.item {
|
.item {
|
||||||
padding-top: 0.35rem;
|
padding-top: 0.35rem;
|
||||||
padding-bottom: 0.35rem;
|
padding-bottom: 0.35rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media screen and ( max-height: 720px ) and ( min-width: 1280px ) {
|
@media screen and ( max-height: 780px ) and ( min-width: 1280px ) {
|
||||||
.item {
|
.item {
|
||||||
padding-top: 0.05rem;
|
padding-top: 0.05rem;
|
||||||
padding-bottom: 0.05rem;
|
padding-bottom: 0.05rem;
|
||||||
|
|
Loading…
Reference in a new issue