fix iphone padding

This commit is contained in:
Marco Crapts
2023-06-01 21:31:18 +02:00
parent 2f4c4aa7fd
commit 8fe704744f
3 changed files with 38 additions and 8 deletions

View File

@@ -5,9 +5,15 @@ import { initialized } from '@/composables/useFirebase'
const loading = inject<boolean>('loading')
const props = defineProps<{
sideBarCollapsed: boolean
}>()
const props = withDefaults(
defineProps<{
sideBarCollapsed: boolean
height?: number
}>(),
{
height: 52
}
)
const emit = defineEmits<{
toggleSideBar: []
@@ -24,8 +30,14 @@ const handleSignIn = async (close: () => Promise<boolean>) => {
}
</script>
<template>
<div class="z-[500] flex h-[50px] bg-primary" :class="searchActive && 'search-active'">
<div class="mx-auto flex w-full max-w-app items-center py-2.5 text-white">
<div
class="z-[500] flex items-end bg-primary"
:class="searchActive && 'search-active'"
>
<div
class="mx-auto flex w-full max-w-app items-center py-2.5 text-white"
:style="{ height: `${props.height}px` }"
>
<div
class="search-active-hide flex items-center pl-3"
:class="sideBarCollapsed ? 'w-fit' : 'max-sm:w-fit md:w-sidebar md:pr-3'"