Просмотр исходного кода

move mobile-bar footer components

llcc 3 лет назад
Родитель
Сommit
059e65f0f7
2 измененных файлов с 6 добавлено и 10 удалено
  1. 4 9
      src/main/frontend/components/sidebar.cljs
  2. 2 1
      src/main/frontend/mobile/index.css

+ 4 - 9
src/main/frontend/components/sidebar.cljs

@@ -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)
 

+ 2 - 1
src/main/frontend/mobile/index.css

@@ -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;