Make ios with notches prettier

This commit is contained in:
Jon Staab
2025-01-31 17:40:14 -08:00
parent def6de321c
commit bcd94ee75e
8 changed files with 64 additions and 7 deletions
+2
View File
@@ -7,6 +7,8 @@ build
gradlew* gradlew*
_app _app
release release
ios/DerivedData/
ios/App/Pods/
android/capacitor-cordova-android-plugins android/capacitor-cordova-android-plugins
android/app/src/androidTest android/app/src/androidTest
android/app/src/test android/app/src/test
+5
View File
@@ -12,6 +12,11 @@ const config: CapacitorConfig = {
androidSplashResourceName: "splash" androidSplashResourceName: "splash"
} }
}, },
// Use this for live reload https://capacitorjs.com/docs/guides/live-reload
// server: {
// url: "http://192.168.1.251:1847",
// cleartext: true
// },
}; };
export default config; export default config;
+47
View File
@@ -54,11 +54,58 @@
--secondary-content: oklch(var(--sc)); --secondary-content: oklch(var(--sc));
} }
:root,
body, body,
html { html {
@apply bg-base-300; @apply bg-base-300;
} }
/* ios */
.sait {
padding-top: env(safe-area-inset-top);
}
.sair {
padding-right: env(safe-area-inset-right);
}
.saib {
padding-bottom: env(safe-area-inset-bottom);
}
.sail {
padding-left: env(safe-area-inset-left);
}
.saix {
@apply sail sair;
}
.saiy {
@apply sait saib;
}
.sai {
@apply saiy saix;
}
.top-sai {
top: env(safe-area-inset-top);
}
.right-sai {
right: env(safe-area-inset-right);
}
.bottom-sai {
bottom: env(safe-area-inset-bottom);
}
.left-sai {
left: env(safe-area-inset-left);
}
/* utilities */ /* utilities */
.bg-alt, .bg-alt,
+4 -2
View File
@@ -30,7 +30,7 @@
) )
</script> </script>
<div class="relative z-nav hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block"> <div class="sail sait saib relative z-nav hidden w-14 flex-shrink-0 bg-base-200 pt-4 md:block">
<div class="flex h-full flex-col justify-between"> <div class="flex h-full flex-col justify-between">
<div> <div>
{#if PLATFORM_RELAY} {#if PLATFORM_RELAY}
@@ -72,8 +72,10 @@
<slot /> <slot />
<!-- a little extra something for ios -->
<div class="fixed bottom-0 left-0 right-0 z-nav h-14 bg-base-100 md:hidden" />
<div <div
class="border-top fixed bottom-0 left-0 right-0 z-nav h-14 border border-base-200 bg-base-100 md:hidden"> class="border-top bottom-sai fixed left-0 right-0 z-nav h-14 border border-base-200 bg-base-100 md:hidden">
<div class="content-padding-x content-sizing flex justify-between px-2"> <div class="content-padding-x content-sizing flex justify-between px-2">
<div class="flex gap-2 sm:gap-8"> <div class="flex gap-2 sm:gap-8">
<PrimaryNavItem title="Home" href="/home"> <PrimaryNavItem title="Home" href="/home">
+1 -1
View File
@@ -10,7 +10,7 @@
transition:fade transition:fade
on:click={onClose} /> on:click={onClose} />
<div <div
class="scroll-container absolute bottom-0 right-0 top-0 w-80 overflow-auto bg-base-200 text-base-content lg:w-96" class="scroll-container saiy sair absolute bottom-0 right-0 top-0 w-80 overflow-auto bg-base-200 text-base-content lg:w-96"
transition:translate={{axis: "x", duration: 300}}> transition:translate={{axis: "x", duration: 300}}>
<slot /> <slot />
</div> </div>
+1 -1
View File
@@ -1,4 +1,4 @@
<div <div
class="scroll-container max-h-screen flex-grow overflow-auto bg-base-200 pb-14 md:pb-0 {$$props.class}"> class="sait saib sair scroll-container max-h-screen flex-grow overflow-auto bg-base-200 pb-14 md:pb-0 {$$props.class}">
<slot /> <slot />
</div> </div>
+2 -1
View File
@@ -1,3 +1,4 @@
<div class="hidden max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300 md:flex"> <div
class="sail sait saib hidden max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300 md:flex">
<slot /> <slot />
</div> </div>
@@ -195,7 +195,7 @@
}) })
</script> </script>
<div class="relative flex h-full flex-col"> <div class="saib relative flex h-full flex-col">
<PageBar> <PageBar>
<div slot="icon" class="center"> <div slot="icon" class="center">
<Icon icon="hashtag" /> <Icon icon="hashtag" />
@@ -259,7 +259,7 @@
</div> </div>
</div> </div>
{/if} {/if}
<div> <div class="saib">
{#if parent} {#if parent}
<ChannelComposeParent event={parent} clear={clearParent} /> <ChannelComposeParent event={parent} clear={clearParent} />
{/if} {/if}