From c1cf5df70ef23278dd7702636472be9f69b2f64d Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sat, 23 Nov 2024 12:28:59 -0800 Subject: [PATCH] Minor CSS fixes * Breadcrumbs: override Bulma's nowrap style, as long forum thread titles could cause horizontal scrolling on mobile. * Dashboard: fix double tag wrapping for profile pictures. * Member Search: fix invalid HTML code where div tags closed the wrapping p tag. --- web/static/css/theme.css | 6 ++ web/templates/account/dashboard.html | 49 +++++++-------- web/templates/account/search.html | 90 +++++++++++++++------------- 3 files changed, 79 insertions(+), 66 deletions(-) diff --git a/web/static/css/theme.css b/web/static/css/theme.css index 14cb3f4..b50616f 100644 --- a/web/static/css/theme.css +++ b/web/static/css/theme.css @@ -159,6 +159,12 @@ nav.navbar { height: 1.5em !important; } +/* Bulma breadcrumbs don't word-wrap which can cause horizontal scrolling on mobile, + especially on forum thread pages with a long thread title. */ +.breadcrumb { + white-space: inherit; +} + /*** * Mobile navbar notification count badge no. */ diff --git a/web/templates/account/dashboard.html b/web/templates/account/dashboard.html index fb5a78b..69eceb5 100644 --- a/web/templates/account/dashboard.html +++ b/web/templates/account/dashboard.html @@ -4,8 +4,13 @@ @@ -182,7 +187,7 @@
@@ -487,9 +486,7 @@ NEW!
{{end}} - - {{template "avatar-48x48" .AboutUser}} - + {{template "avatar-48x48" .AboutUser}}
diff --git a/web/templates/account/search.html b/web/templates/account/search.html index f1423be..3a66c29 100644 --- a/web/templates/account/search.html +++ b/web/templates/account/search.html @@ -82,6 +82,15 @@ Learn more

+ {{else}} +
+ + See also: + + + Who's Nearby? + +
{{end}} @@ -444,47 +453,48 @@ {{if .GetProfileField "orientation"}} {{.GetProfileField "orientation"}} {{end}} - - - {{if $Root.UserOnChatMap.Get .Username}} -
- - - Currently on chat! - -
- {{end}} - - - {{if eq $Root.Sort "last_login_at desc"}} -
- - Last logged in: - - {{SincePrettyCoarse .LastLoginAt}} ago - - -
- {{end}} - - {{if or (eq $Root.Sort "created_at desc") (eq $Root.Sort "certification_photos.updated_at desc")}} -
- - Member since: - - {{SincePrettyCoarse .CreatedAt}} ago - - -
- {{end}} - - - {{if eq $Root.Sort "distance"}} -
- {{$Root.DistanceMap.Get .ID}} away -
- {{end}}

+ + + {{if $Root.UserOnChatMap.Get .Username}} +
+ + + Currently on chat! + +
+ {{end}} + + + {{if eq $Root.Sort "last_login_at desc"}} +
+ + Last logged in: + + {{SincePrettyCoarse .LastLoginAt}} ago + + +
+ {{end}} + + {{if or (eq $Root.Sort "created_at desc") (eq $Root.Sort "certification_photos.updated_at desc")}} +
+ + Member since: + + {{SincePrettyCoarse .CreatedAt}} ago + + +
+ {{end}} + + + {{if eq $Root.Sort "distance"}} +
+ {{$Root.DistanceMap.Get .ID}} away +
+ {{end}} +