Browse Source

Add a pod switcher item in the menu

Cleanup bottom nativation Android specific CSS
pull/913/head
Timothée Jaussoin 6 years ago
parent
commit
c56bb77a58
  1. 6
      app/widgets/Navigation/navigation.tpl
  2. 1
      locales/locales.ini
  3. 24
      public/theme/css/android.css
  4. 4
      public/theme/css/style.css

6
app/widgets/Navigation/navigation.tpl

@ -66,6 +66,12 @@
<p class="normal">{$c->__('page.configuration')}</p>
</li>
</a>
<a class="classic on_android" href="#">
<li onclick="Android.choosePod()">
<span class="primary icon bubble"><i class="material-icons">dns</i></span>
<p class="normal">{$c->__('global.change_pod')}</p>
</li>
</a>
<a class="classic on_mobile" href="#">
<li onclick="MovimTpl.toggleMenu()">
<span class="primary icon bubble"><i class="material-icons">arrow_back</i></span>

1
locales/locales.ini

@ -3,6 +3,7 @@ no_js = Movim requires Javascript to be enabled to work properly.
description = Movim is a kickass distributed social networking platform that protect your privacy and comes with a set of awesome features.
loading = Loading…
or = Or
change_pod = Switch to another pod
[page]
account = Account

24
public/theme/css/android.css

@ -1,3 +1,7 @@
.on_android {
display: inherit;
}
body > nav,
main > * {
padding-top: 3rem;
@ -9,19 +13,7 @@ main > * {
body .drawer {
top: 10rem;
height: calc(100% - 16rem);
}
body .drawer.empty {
transform: translateY(120%);
}
body {
height: calc(100% - 6rem);
}
body ul#bottomnavigation {
bottom: 6rem;
height: calc(100% - 10rem);
}
body ul.context_menu {
@ -34,11 +26,7 @@ body #snap {
top: 3rem;
}
body .button.action {
bottom: 8rem;
}
body #preview {
height: calc(100% - 9rem);
height: calc(100% - 3rem);
top: 3rem;
}

4
public/theme/css/style.css

@ -372,6 +372,10 @@ img.avatar:not([src=""]) + .placeholder {
/* Display/hide */
.on_android {
display: none;
}
.on_mobile {
display: none !important;
}

Loading…
Cancel
Save