From 09265195bbfa7d6a4389daf81f516fea1dbd0a17 Mon Sep 17 00:00:00 2001 From: Azareal Date: Sat, 2 Nov 2019 15:43:59 +1000 Subject: [PATCH] Fix no item styling in Cosora and add another nbsp. --- templates/forum.html | 2 +- templates/ip_search.html | 6 ++---- themes/cosora/public/main.css | 7 +++++++ themes/nox/public/main.css | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/templates/forum.html b/templates/forum.html index 7a008867..4538b575 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -79,7 +79,7 @@ - {{else}}
{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} {{lang "forum_start_one"}}{{end}}{{end}}
{{end}} + {{else}}
{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} {{lang "forum_start_one"}}{{end}}{{end}}
{{end}} {{template "paginator.html" . }} diff --git a/templates/ip_search.html b/templates/ip_search.html index dde6c4fa..3f59e468 100644 --- a/templates/ip_search.html +++ b/templates/ip_search.html @@ -12,14 +12,12 @@ - {{if .IP}} -
+ {{if .IP}}
{{range .ItemList}} {{else}}
{{lang "ip_search_no_users"}}
{{end}} -
- {{end}} +
{{end}} {{template "footer.html" . }} \ No newline at end of file diff --git a/themes/cosora/public/main.css b/themes/cosora/public/main.css index efb333d8..09524d57 100644 --- a/themes/cosora/public/main.css +++ b/themes/cosora/public/main.css @@ -271,6 +271,7 @@ h1, h2, h3, h4, h5 { .forum_list .rowmsg.rowitem { border: 1px solid var(--element-border-color); border-bottom: 2px solid var(--element-border-color); + background-color: var(--element-background-color); } .colstack { @@ -1245,10 +1246,16 @@ red { margin-bottom: 14px; } +#ip_search_container .rowlist:not(.has_items) { + display: block; +} #ip_search_container .rowlist .rowitem { padding-top: 16px; padding-bottom: 10px; } +#ip_search_container .rowlist .rowmsg { + width: 100%; +} .ip_search_block .rowitem { padding: 8px; padding-left: 12px; diff --git a/themes/nox/public/main.css b/themes/nox/public/main.css index 487bece1..b4f14830 100644 --- a/themes/nox/public/main.css +++ b/themes/nox/public/main.css @@ -215,7 +215,7 @@ li a { background-color: #444444; padding: 16px; } -.rowblock:not(.topic_list):not(.rowhead):not(.opthead) .rowitem:not(.post_item) { +.rowblock:not(.topic_list):not(.rowhead):not(.opthead) .rowitem:not(.post_item), .topic_list .rowitem.rowmsg { border-radius: 3px; background-color: #444444; display: flex;