mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-15 08:57:29 -06:00
[bugfix] Fix wide images being squished when used as instance avatar (#2669)
This commit is contained in:
parent
291e180990
commit
2d9e498f96
5 changed files with 52 additions and 27 deletions
|
|
@ -105,19 +105,18 @@ function AdminSettingsForm({ data: instance }: AdminSettingsFormProps) {
|
|||
/>
|
||||
|
||||
<div className="file-upload" aria-labelledby="avatar">
|
||||
<strong id="avatar">Instance avatar</strong>
|
||||
<div>
|
||||
<strong id="avatar">Instance avatar (1:1 images look best)</strong>
|
||||
<div className="file-upload-with-preview">
|
||||
<img
|
||||
className="preview avatar"
|
||||
src={form.thumbnail.previewValue ?? instance?.thumbnail}
|
||||
alt={form.thumbnailDesc.value ?? (instance?.thumbnail ? `Thumbnail image for the instance` : "No instance thumbnail image set")}
|
||||
/>
|
||||
<div>
|
||||
<div className="file-input-with-image-description">
|
||||
<FileInput
|
||||
field={form.thumbnail}
|
||||
accept="image/png, image/jpeg, image/webp, image/gif"
|
||||
/>
|
||||
<br/>
|
||||
<TextInput
|
||||
field={form.thumbnailDesc}
|
||||
label="Avatar image description"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue