move mobile-bar footer components

This commit is contained in:
llcc
2022-05-05 10:13:22 +08:00
parent b3d276a9bd
commit 059e65f0f7
2 changed files with 6 additions and 10 deletions

View File

@@ -389,13 +389,13 @@
:data-is-full-width (or global-graph-pages?
(contains? #{:all-files :all-pages :my-publishing} route-name))}
(mobile-bar)
(footer/footer)
(when (and (not (mobile-util/native-platform?))
(contains? #{:page :home} route-name))
(widgets/demo-graph-alert))
(when (mobile-util/native-platform?)
(mobile-bar))
(cond
(not indexeddb-support?)
nil
@@ -615,12 +615,7 @@
:indexeddb-support? indexeddb-support?
:light? light?
:db-restoring? db-restoring?
:main-content main-content})
(when (and (mobile-util/native-platform?)
current-repo
(not (state/sub :modal/show?)))
(footer/footer))]
:main-content main-content})]
(right-sidebar/sidebar)

View File

@@ -1,9 +1,10 @@
.cp__footer {
position: absolute;
bottom: 0px;
left: 0px;
padding: 10px 20px;
background-color: var(--ls-primary-background-color);
z-index: 1000;
z-index: 10;
display: flex;
flex: 0 0 auto;
white-space: nowrap;