feat: add native android app with capacitor (#732)
* feat: add capacitor and android app * feat: add android build action * fix: add capacitor zoom and fix haptics * fix: padding on desktop
This commit is contained in:
1 parent
a1ccf4d9d0
commit
dfe6a7e67d
50 files changed
+1168
-30
No files matched your search
@@ -2,8 +2,8 @@
|
||||
import type { Snippet } from 'svelte'
|
||||
|
||||
const placements = {
|
||||
top: 'top-6 lg:top-22',
|
||||
bottom: 'bottom-22 lg:bottom-6 pt-6 mt-auto',
|
||||
top: 'placement-top',
|
||||
bottom: 'placement-bottom',
|
||||
}
|
||||
|
||||
interface Props {
|
||||
@@ -22,3 +22,25 @@
|
||||
>
|
||||
{@render children?.()}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@reference '../../../app.css';
|
||||
|
||||
.placement-bottom {
|
||||
bottom: calc(calc(var(--spacing) * 22) + env(safe-area-inset-bottom, 0px));
|
||||
padding-top: calc(var(--spacing) * 6);
|
||||
margin-top: auto;
|
||||
|
||||
@variant lg {
|
||||
bottom: calc(var(--spacing) * 6);
|
||||
}
|
||||
}
|
||||
|
||||
.placement-top {
|
||||
top: calc(calc(var(--spacing) * 6) + env(safe-area-inset-top, 0px));
|
||||
|
||||
@variant lg {
|
||||
top: calc(var(--spacing) * 22);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user