diff options
author | Jordan <me@jordan.im> | 2021-11-01 22:50:33 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-11-01 22:50:33 -0700 |
commit | aff47ab1f9b11271ac69d0fee64025f5e26b621c (patch) | |
tree | efe8c4fefe6c0bb7b0170f69fbde40306ee19398 | |
parent | 2120238760d974f2b0f5cc99faa7ecaf23989bf2 (diff) | |
download | crane-aff47ab1f9b11271ac69d0fee64025f5e26b621c.tar.gz crane-aff47ab1f9b11271ac69d0fee64025f5e26b621c.zip |
wrap category names in a nowrap <span>
-rw-r--r-- | templates/admin-edit.html | 2 | ||||
-rw-r--r-- | templates/admin.html | 2 | ||||
-rw-r--r-- | templates/index.html | 2 | ||||
-rw-r--r-- | templates/layout.html | 4 |
4 files changed, 7 insertions, 3 deletions
diff --git a/templates/admin-edit.html b/templates/admin-edit.html index 7b30294..f28518b 100644 --- a/templates/admin-edit.html +++ b/templates/admin-edit.html @@ -20,7 +20,7 @@ </tr> </table> <div class="cat"> - <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span> + <span>{{ range $category, $paper := .Papers.List }}<span class="nowrap">[<a href="#{{ $category }}">{{ $category }}</a>]</span> {{ end }}</span> </div> <table class='tabs'> <tr> diff --git a/templates/admin.html b/templates/admin.html index 05cf04f..8573e23 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -39,7 +39,7 @@ </table> {{ if gt $categoryCount 0 }} <div class="cat"> - <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span> + <span>{{ range $category, $paper := .Papers.List }}<span class="nowrap">[<a href="#{{ $category }}">{{ $category }}</a>]</span> {{ end }}</span> </div> <table class='tabs'> <tr> diff --git a/templates/index.html b/templates/index.html index 294ecea..d435a38 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,7 +5,7 @@ {{ $categoryCount := len .Papers.List }} {{ if gt $categoryCount 0 }} <div class="cat"> - <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span> + <span>{{ range $category, $paper := .Papers.List }}<span class="nowrap">[<a href="#{{ $category }}">{{ $category }}</a>]</span> {{ end }}</span> </div> <table class='tabs'> <tr> diff --git a/templates/layout.html b/templates/layout.html index 57dc200..c776582 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -226,6 +226,10 @@ div#crane div.footer a { div#crane div.footer a:hover { text-decoration: underline; } + +div#crane div.cat .nowrap { + white-space: nowrap; +} </style> </head> <body> |