1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00

fix: remove extra top margin from notifications

This commit is contained in:
patak 2023-03-07 21:43:23 +01:00
parent 82d6b2ad29
commit 0f477236ac
2 changed files with 6 additions and 5 deletions

View file

@ -29,7 +29,7 @@ useCommands(() => command
</script>
<template>
<div flex w-full items-center lg:text-lg of-x-auto scrollbar-hide>
<div flex w-full items-center lg:text-lg of-x-auto scrollbar-hide border="b base">
<template
v-for="(option, index) in options"
:key="option?.name || index"

View file

@ -17,10 +17,10 @@ const wideLayout = computed(() => route.meta.wideLayout ?? false)
<div
sticky top-0 z10 backdrop-blur
pt="[env(safe-area-inset-top,0)]"
border="b base" bg="[rgba(var(--rgb-bg-base),0.7)]"
bg="[rgba(var(--rgb-bg-base),0.7)]"
class="native:lg:w-[calc(100vw-5rem)] native:xl:w-[calc(135%+(100vw-1200px)/2)]"
>
<div flex justify-between px5 py2 :class="{ 'xl:hidden': $route.name !== 'tag' }" class="native:xl:flex">
<div flex justify-between px5 py2 :class="{ 'xl:hidden': $route.name !== 'tag' }" class="native:xl:flex" border="b base">
<div flex gap-3 items-center :overflow-hidden="!noOverflowHidden ? '' : false" py2 w-full>
<NuxtLink
v-if="backOnSmallScreen || back" flex="~ gap1" items-center btn-text p-0 xl:hidden
@ -41,9 +41,10 @@ const wideLayout = computed(() => route.meta.wideLayout ?? false)
<NavUserSkeleton v-else />
</div>
</div>
<slot name="header" />
<slot name="header">
<div hidden :class="{ 'xl:block': $route.name !== 'tag' }" h-6 />
</slot>
</div>
<div :class="{ 'xl:block': $route.name !== 'tag' }" hidden h-6 />
<PwaInstallPrompt lg:hidden />
<div :class="isHydrated && wideLayout ? 'xl:w-full sm:max-w-600px' : 'sm:max-w-600px md:shrink-0'" m-auto>
<slot />