From 2d9e498f9693c9fe553aa93c3faee9883a4d1e77 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 21 Feb 2024 14:24:04 +0100 Subject: [bugfix] Fix wide images being squished when used as instance avatar (#2669) --- web/source/settings/admin/settings/index.tsx | 7 +++--- web/source/settings/style.css | 36 +++++++++++++++++----------- 2 files changed, 25 insertions(+), 18 deletions(-) (limited to 'web/source/settings') diff --git a/web/source/settings/admin/settings/index.tsx b/web/source/settings/admin/settings/index.tsx index 4e5ea343a..69fbfd4ca 100644 --- a/web/source/settings/admin/settings/index.tsx +++ b/web/source/settings/admin/settings/index.tsx @@ -105,19 +105,18 @@ function AdminSettingsForm({ data: instance }: AdminSettingsFormProps) { />
- Instance avatar -
+ Instance avatar (1:1 images look best) +
{form.thumbnailDesc.value -
+
-
div, section.with-sidebar > form { gap: 1rem; } -.file-upload > div { - display: flex; - gap: 1rem; - - img { - height: 8rem; - border: 0.2rem solid $border-accent; - } - - img.avatar { - width: 8rem; +.file-upload { + .file-upload-with-preview { + display: flex; + gap: 1rem; + + img { + height: 8rem; + border: 0.2rem solid $border-accent; + } + + img.avatar { + width: 8rem; + } + + img.header { + width: 24rem; + } } - - img.header { - width: 24rem; + + .file-input-with-image-description { + display: flex; + flex-direction: column; + justify-content: space-around; } } -- cgit v1.2.3