diff options
author | Mario <mario@mariovavti.com> | 2017-11-08 08:57:30 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2017-11-11 20:25:52 +0100 |
commit | 129e6bddde7ec6dd27dd3d1be5f16c2619c97887 (patch) | |
tree | 8bfc178e5fc1b7c09ce9a0578381f9899e4e04b7 | |
parent | 8260817cf702382d27a7d5006eea2c172a09b798 (diff) | |
download | volse-hubzilla-129e6bddde7ec6dd27dd3d1be5f16c2619c97887.tar.gz volse-hubzilla-129e6bddde7ec6dd27dd3d1be5f16c2619c97887.tar.bz2 volse-hubzilla-129e6bddde7ec6dd27dd3d1be5f16c2619c97887.zip |
truncate nav-app-link if appropriate
-rw-r--r-- | view/css/bootstrap-red.css | 2 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 5 | ||||
-rwxr-xr-x | view/tpl/navbar_default.tpl | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/view/css/bootstrap-red.css b/view/css/bootstrap-red.css index 2dfc9e07b..18efd69e4 100644 --- a/view/css/bootstrap-red.css +++ b/view/css/bootstrap-red.css @@ -19,7 +19,6 @@ nav .dropdown-menu { } } - @media screen and (max-width: 767px) { .navbar { padding: .5rem 7px; @@ -41,6 +40,7 @@ nav .dropdown-menu { .navbar-toggler-right { padding: 0.2rem 0; + white-space: nowrap; } #navbar-collapse-1 i { diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index d67fc4379..1e44d5ed8 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1257,6 +1257,11 @@ img.mail-conv-sender-photo { white-space: nowrap; } +#nav-app-link-wrapper { + min-width: 0; + flex-basis: 25%; +} + .page-title { margin: 7px 0px; } diff --git a/view/tpl/navbar_default.tpl b/view/tpl/navbar_default.tpl index d02ad2e97..1f771e5ae 100755 --- a/view/tpl/navbar_default.tpl +++ b/view/tpl/navbar_default.tpl @@ -59,8 +59,8 @@ </div> {{/if}} </div> -<div class="navbar-nav mr-auto"> - <a id="nav-app-link" href="{{$url}}" class="nav-link"> +<div id="nav-app-link-wrapper" class="navbar-nav mr-auto"> + <a id="nav-app-link" href="{{$url}}" class="nav-link text-truncate"> {{$sel.name}} {{if $sitelocation}} <br><small>{{$sitelocation}}</small> |