commit 4bd5a15f73dcbb21f4f33dbc0fa192b7b9a46477
parent a22eaca52f1d141a3d545e139e5a40e7a8a280a4
Author: Peter <peter@minskio.co.uk>
Date: Thu, 15 Oct 2026 14:10:27 +0100
Remove whitespace around tag values
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/static/style.css b/static/style.css
@@ -9,6 +9,7 @@ div#search-container {border-left:1px solid gray; display: flex; align-items: ce
span.required {color: red}
textarea {background: unset; color: #cfcfcf}
textarea:focus {outline: none}
+.ajax-tag-form {display: inline; margin: 0; padding-right: 5px}
/* nav menu */
nav ul{flex:1 1 auto;list-style:none}
diff --git a/templates/file.html b/templates/file.html
@@ -13,8 +13,7 @@
<span class="file-tag-category">{{$k}}:</span><br>
{{range $i, $v := $vs}}
{{if $i}}<br> {{end}}
- <form method="post" action="/file/{{$.Data.File.ID}}/tag/delete" class="ajax-tag-form"><input type="hidden" name="category" value="{{$k}}"><input type="hidden" name="value" value="{{$v}}"><button class="text-button" type="submit">x</button></form>
- <a href="/tag/{{pathEscape $k}}/{{pathEscape $v}}">{{$v}}</a>
+ <form method="post" action="/file/{{$.Data.File.ID}}/tag/delete" class="ajax-tag-form"><input type="hidden" name="category" value="{{$k}}"><input type="hidden" name="value" value="{{$v}}"><button class="text-button" type="submit">x</button></form><a href="/tag/{{pathEscape $k}}/{{pathEscape $v}}">{{$v}}</a>
{{end}}
</li>
{{else}}
@@ -150,4 +149,4 @@
</div>
-{{template "_footer"}}
-\ No newline at end of file
+{{template "_footer"}}