make landscape mode behave better on phones

This commit is contained in:
nayan9617
2026-04-02 20:21:34 +05:30
parent cf4e3f5fc6
commit b162d39f7b
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
const {children}: Props = $props() const {children}: Props = $props()
</script> </script>
<div class="flex h-screen overflow-hidden"> <div class="flex h-[100dvh] overflow-hidden">
{#if $pubkey} {#if $pubkey}
<PrimaryNav> <PrimaryNav>
{@render children?.()} {@render children?.()}
+1 -1
View File
@@ -7,6 +7,6 @@
const back = () => history.back() const back = () => history.back()
</script> </script>
<Button class="m-auto h-screen w-screen cursor-pointer p-4" onclick={back}> <Button class="m-auto h-[100dvh] w-[100dvw] cursor-pointer p-4" onclick={back}>
<ContentLinkBlockImage {value} {event} class="m-auto max-h-full max-w-full rounded-box" /> <ContentLinkBlockImage {value} {event} class="m-auto max-h-full max-w-full rounded-box" />
</Button> </Button>
+1 -1
View File
@@ -12,7 +12,7 @@
<div <div
class={cx( class={cx(
"ml-sai mt-sai mb-sai max-h-screen w-60 sm:flex-shrink-0 flex-col gap-1 bg-base-300 z-nav hidden md:flex", "ml-sai mt-sai mb-sai max-h-[100dvh] w-60 sm:flex-shrink-0 flex-col gap-1 bg-base-300 z-nav hidden md:flex",
props.class, props.class,
)}> )}>
{@render children?.()} {@render children?.()}
+1 -1
View File
@@ -21,7 +21,7 @@
const chats = $derived($chatSearch.searchOptions(term)) const chats = $derived($chatSearch.searchOptions(term))
</script> </script>
<div class="hidden min-h-screen md:hero"> <div class="hidden min-h-[100dvh] md:hero">
<div class="col-2 hero-content text-center"> <div class="col-2 hero-content text-center">
<p class="row-2 text-lg"> <p class="row-2 text-lg">
<Icon icon={InfoCircle} /> <Icon icon={InfoCircle} />
+1 -1
View File
@@ -19,7 +19,7 @@
}) })
</script> </script>
<div class="hero min-h-screen overflow-auto pb-8"> <div class="hero min-h-[100dvh] overflow-auto pb-8">
<div class="hero-content"> <div class="hero-content">
<div class="column content gap-4"> <div class="column content gap-4">
<h1 class="text-center text-5xl">Welcome to</h1> <h1 class="text-center text-5xl">Welcome to</h1>
+1 -1
View File
@@ -18,7 +18,7 @@
const openProfile = () => pushModal(ProfileDetail, {pubkey}) const openProfile = () => pushModal(ProfileDetail, {pubkey})
</script> </script>
<div class="mt-8 min-h-screen bg-base-200 sm:hero"> <div class="mt-8 min-h-[100dvh] bg-base-200 sm:hero">
<div class="hero-content"> <div class="hero-content">
<div class="column content gap-6"> <div class="column content gap-6">
<p class="text-center text-2xl">Thanks for using</p> <p class="text-center text-2xl">Thanks for using</p>