From 90df5b84ac27c10d66ae3d895ff77a8e92e15396 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:12:32 +1300 Subject: [PATCH] small UI tweaks #368 --- app/static/styles.css | 3 ++ app/static/styles.scss | 4 +++ app/templates/admin/federation.html | 47 +++++++++++++++-------------- 3 files changed, 32 insertions(+), 22 deletions(-) diff --git a/app/static/styles.css b/app/static/styles.css index cfe92b65..c9a7a873 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -1809,6 +1809,9 @@ form h5 { position: relative; top: -11px; } +.coolfieldset legend.tweak-top { + top: -18px; +} .coolfieldset legend, .coolfieldset.expanded legend { background: whitesmoke url(/static/images/expanded.gif) no-repeat center left; diff --git a/app/static/styles.scss b/app/static/styles.scss index 7b17739f..0b1b994f 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -1500,6 +1500,10 @@ form { display: block; position: relative; top: -11px; + + &.tweak-top { + top: -18px; + } } .coolfieldset legend, .coolfieldset.expanded legend{ diff --git a/app/templates/admin/federation.html b/app/templates/admin/federation.html index 34a7f981..39f6d181 100644 --- a/app/templates/admin/federation.html +++ b/app/templates/admin/federation.html @@ -37,29 +37,32 @@
-
-
-

{{ _('Remote Server Scan') }}

-

Use this to scan a remote lemmy server and "pre-load" it's communities, as ranked by posts and activity. NSFW communities and communities from banned instances are excluded. Communities with less than 100 posts and less than 500 active users in the past week are excluded.

-

Input should be in the form of https://server-name.tld

- {% if current_app_debug %} -

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

- {% endif %} - {{ render_form(remote_scan_form) }} -
-
-
+
+ Bulk community import +
+
+

{{ _('Remote server scan') }}

+

{{ _('Use this to scan a remote lemmy server and "pre-load" it\'s communities, as ranked by posts and activity. NSFW communities and communities from banned instances are excluded.') }}

+

{{ _('Input should be in the form of https://server-name.tld') }}

+ {% if current_app_debug %} +

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

+ {% endif %} + {{ render_form(remote_scan_form) }} +
+
+
-
-
-

{{ _('Load From Lemmyverse Data') }}

-

Use this to "pre-load" known threadiverse communities, as ranked by posts and activity. The list of communities pulls from the same list as LemmyVerse. NSFW communities and communities from banned instances are excluded. Communities with less than 100 posts and less than 500 active users in the past week are excluded.

- {% if current_app_debug %} -

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

- {% endif %} - {{ render_form(preload_form) }} -
-
+
+
+

{{ _('Load communities from Lemmyverse data') }}

+

{{ _('Use this to "pre-load" known threadiverse communities, as ranked by posts and activity. The list of communities pulls from the same list as LemmyVerse. NSFW communities and communities from banned instances are excluded. Communities with less than 100 posts and less than 500 active users in the past week are excluded.') }}

+ {% if current_app_debug %} +

*** This instance is in development mode. This function could cause timeouts depending on how your networking is setup. ***

+ {% endif %} + {{ render_form(preload_form) }} +
+
+