From 48ac5a44e2822791c3411831491201be8b21cd14 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 22 Jun 2023 15:01:07 -0700 Subject: [PATCH] Improve UX while server statuses are loading --- styles/sass/style.scss | 10 +++++++- templates/modal.html.tera | 50 +++++++++++++++++++++++---------------- 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/styles/sass/style.scss b/styles/sass/style.scss index 63c91d7..fd6da3f 100644 --- a/styles/sass/style.scss +++ b/styles/sass/style.scss @@ -175,7 +175,7 @@ a { padding: 0.25em 0.5em 0.25em 0.5em; border-radius: 2px; - &:disabled { + &:disabled, &.disabled { background: gray; } } @@ -205,4 +205,12 @@ a { .icon { height: 1.5em; vertical-align: middle; +} + +h1 { + text-align: center; + + &:first-child { + margin-top: 0; + } } \ No newline at end of file diff --git a/templates/modal.html.tera b/templates/modal.html.tera index a73458e..7e5d0cc 100644 --- a/templates/modal.html.tera +++ b/templates/modal.html.tera @@ -4,13 +4,20 @@

In order to participate in challenges, you must be a member of a participating Discord server.

Join a participating server

+
+

Participating servers

+
{% for guild in settings.guilds %} {% if guild.hidden or not guild.invite %}{% continue %}{% endif %}