aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-25 20:37:53 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-25 20:37:53 +0200
commit259cea1f3ec50f1db117ffe651ee9b2e8e0740a5 (patch)
treeffd1ef5bcd52952ff1bbd509f8d96f187708c189
parent907c13566c775ac1210bc66de99f7273e7c8a507 (diff)
downloadcerrado-259cea1f3ec50f1db117ffe651ee9b2e8e0740a5.tar.gz
cerrado-259cea1f3ec50f1db117ffe651ee9b2e8e0740a5.tar.bz2
cerrado-259cea1f3ec50f1db117ffe651ee9b2e8e0740a5.zip
ref: Align navbarsv0.0.8
-rw-r--r--scss/main.scss10
-rw-r--r--templates/navbar.qtpl2
-rw-r--r--templates/navbar.qtpl.go2
3 files changed, 12 insertions, 2 deletions
diff --git a/scss/main.scss b/scss/main.scss
index c438a90..893e66c 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -13,6 +13,8 @@ $headings-margin-bottom: 0;
@import "bootstrap/scss/_mixins.scss";
@import "bootstrap/scss/_utilities.scss";
+$navbar-nav-link-padding-x: $spacer;
+
// added component
@import "bootstrap/scss/_root.scss";
@import "bootstrap/scss/_containers.scss";
@@ -125,6 +127,14 @@ pre {
overflow-x: auto;
}
+#name {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ padding-left: $spacer;
+ max-width: calc(100% - calc(2 * #{$spacer}));
+}
+
#about {
padding: 0 $spacer $spacer $spacer;
> p:first-child {
diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl
index 56ce276..68b1fd8 100644
--- a/templates/navbar.qtpl
+++ b/templates/navbar.qtpl
@@ -40,7 +40,7 @@ Add this back if needed
{% func GitItemNav (name, ref string, s GitSelection) %}
<div class="row">
- <h3>{%s name %} {% if ref != "" && (s == Log || s == Tree) %}@ {%s ref %}{% endif %}</h3>
+ <h3 id="name">{%s name %} {% if ref != "" && (s == Log || s == Tree) %}@ {%s ref %}{% endif %}</h3>
</div>
<div class="row">
<ul class="nav">
diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go
index 6411b53..806df94 100644
--- a/templates/navbar.qtpl.go
+++ b/templates/navbar.qtpl.go
@@ -134,7 +134,7 @@ func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelectio
//line navbar.qtpl:41
qw422016.N().S(`
<div class="row">
- <h3>`)
+ <h3 id="name">`)
//line navbar.qtpl:43
qw422016.E().S(name)
//line navbar.qtpl:43