Skip to content

Commit 833f591

Browse files
committed
fix: no bottom tabs && editor bar on iPad
absolute makes it depend on ancestors, use fixed instead. related to logseq/db-test#507
1 parent 9ad3da9 commit 833f591

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/frontend/mobile/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
#mobile-editor-toolbar {
30-
@apply absolute bottom-0 left-0 w-full z-[99999] flex justify-between bg-background px-2;
30+
@apply fixed bottom-0 left-0 w-full z-[99999] flex justify-between bg-background px-2;
3131

3232
will-change: transform;
3333
transform: translateY(calc(-1 * var(--ls-native-kb-height, 0)));
@@ -158,4 +158,4 @@ html.has-mobile-keyboard {
158158

159159
.ui__dialog-content[label=user-login] {
160160
@apply rounded-lg pb-3;
161-
}
161+
}

src/main/mobile/components/app.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
:root {
77
--ls-page-title-size: 26px;
88
--silk-topbar-inner-height: 32px;
9-
--silk-tabbar-bottom-paddding: 12px;
9+
--silk-tabbar-bottom-padding: 12px;
1010
--silk-100-lvh-dvh-pct: max(100%, 100vh);
1111
--safe-area-inset-top: 40px;
1212
--safe-area-inset-bottom: 16px;
1313
}
1414

1515
html.is-native-ios {
16-
--silk-tabbar-bottom-paddding: 2px;
16+
--silk-tabbar-bottom-padding: 2px;
1717
--safe-area-inset-top: 58px;
1818
--safe-area-inset-bottom: 24px;
1919
}
@@ -23,7 +23,7 @@ html.is-native-android {
2323
--silk-topbar-inner-height: 36px;
2424
--silk-topbar-inner-padding-bottom: 6px;
2525

26-
--silk-tabbar-bottom-paddding: 22px;
26+
--silk-tabbar-bottom-padding: 22px;
2727

2828
.app-silk-index-container {
2929
padding-top: calc(var(--safe-area-inset-top) + var(--silk-topbar-inner-height) + 22px);
@@ -427,11 +427,11 @@ html[data-silk-native-page-scroll-replaced=false] .app-silk-index-scroll-view {
427427
}
428428

429429
.app-silk-tabs {
430-
@apply flex border-t overflow-hidden select-none
431-
bg-gray-02 absolute left-0 -bottom-0 w-full z-[1] dark:bg-gray-01;
430+
@apply fixed flex border-t overflow-hidden select-none
431+
bg-gray-02 left-0 -bottom-0 w-full z-[1] dark:bg-gray-01;
432432

433433
padding-top: 4px;
434-
padding-bottom: calc(env(safe-area-inset-bottom) + var(--silk-tabbar-bottom-paddding));
434+
padding-bottom: calc(env(safe-area-inset-bottom) + var(--silk-tabbar-bottom-padding));
435435

436436
> .as-item {
437437
@apply flex flex-1 flex-col items-center pb-1 transition-opacity opacity-60;
@@ -615,4 +615,4 @@ html[data-silk-native-page-scroll-replaced=false] .app-silk-index-scroll-view {
615615
.cp__repos-quick-actions {
616616
@apply border-none;
617617
}
618-
}
618+
}

0 commit comments

Comments
 (0)