From 0b3a63cf594404395da31d67a034d2f07db4c6ad Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:41:50 +1300 Subject: [PATCH] 1 pixel gif --- app/models.py | 2 +- app/static/images/1px.gif | Bin 0 -> 79 bytes app/static/styles.css | 4 ++++ app/static/styles.scss | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 app/static/images/1px.gif diff --git a/app/models.py b/app/models.py index 272880dd..cd86a358 100644 --- a/app/models.py +++ b/app/models.py @@ -203,7 +203,7 @@ class Community(db.Model): return self.icon.source_url.replace('app/', '/') else: return self.icon.source_url - return '' + return '/static/images/1px.gif' @cache.memoize(timeout=500) def header_image(self) -> str: diff --git a/app/static/images/1px.gif b/app/static/images/1px.gif new file mode 100644 index 0000000000000000000000000000000000000000..d521585072c4fa5462a21200ff7a88a01ec1029a GIT binary patch literal 79 zcmZ?wbhEHbWMp7uXkcUjg8%>jEB;dmO3h8pO-e0ND9K1wNK8*v$WH?^4GSt1(lgWS Z85DoAFmeGk>45ZrbTcq9`7knA0|1hl6HNdB literal 0 HcmV?d00001 diff --git a/app/static/styles.css b/app/static/styles.css index 2b39f51d..d5a1402e 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -457,6 +457,10 @@ nav.navbar { vertical-align: text-top; } +.list-group-item .community_icon { + vertical-align: middle; +} + .community_icon_big { width: 20vw; height: 20vw; diff --git a/app/static/styles.scss b/app/static/styles.scss index 15a97f11..d9b8737f 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -123,6 +123,10 @@ nav.navbar { vertical-align: text-top; } +.list-group-item .community_icon { + vertical-align: middle; +} + .community_icon_big { width: 20vw; height: 20vw;