aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2017-11-08 08:57:30 +0100
committerMario <mario@mariovavti.com>2017-11-08 08:57:30 +0100
commit9d584fc72062422ec38a6321aedb7ca43f4ea429 (patch)
tree4fa237a7d7739cd45d3a372925926388404ba646
parentb5d4acf10a49980035f89d37440ae41a574df5a0 (diff)
downloadvolse-hubzilla-9d584fc72062422ec38a6321aedb7ca43f4ea429.tar.gz
volse-hubzilla-9d584fc72062422ec38a6321aedb7ca43f4ea429.tar.bz2
volse-hubzilla-9d584fc72062422ec38a6321aedb7ca43f4ea429.zip
truncate nav-app-link if appropriate
-rw-r--r--view/css/bootstrap-red.css2
-rw-r--r--view/theme/redbasic/css/style.css5
-rwxr-xr-xview/tpl/navbar_default.tpl4
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 0fe823b7e..22a619959 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -1262,6 +1262,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>