cleanup + fixes for instance tab

This commit is contained in:
Henry Jameson 2026-03-15 19:47:11 +02:00
commit e6a6a06465
6 changed files with 9 additions and 7 deletions

View file

@ -86,7 +86,7 @@ export default {
},
// Readable label
label: {
required: true,
required: false,
type: String,
},
// use unstyled, uh, style

View file

@ -51,6 +51,7 @@
<li>
<ColorSetting
hide-draft-buttons
label=""
path=":pleroma.:manifest.:theme_color"
/>
</li>
@ -99,7 +100,7 @@
override-backend-description
override-backend-description-label
override-available-options
:options="limitLocalContentOptions"
:options="[...limitLocalContentOptions]"
path=":pleroma.:instance.:limit_to_local_content"
/>
</li>

View file

@ -29,7 +29,7 @@ export default {
// The "server" part is primarily for local dev, but could be useful for alt-domain or multiuser usage.
const url = path.includes('://') ? path : useInstanceStore().server + path
return {
mimetype: fileTypeExt(url),
type: fileTypeExt(url),
url,
}
},

View file

@ -20,6 +20,7 @@
{{ ' ' }}
<ColorInput
:id="path"
:name="path"
class="setting-control color-setting-input"
:class="{ disabled: shouldBeDisabled }"
:disabled="shouldBeDisabled"

View file

@ -33,14 +33,14 @@ export default {
const path = e[':src']
if (!path) {
return {
mimetype: '',
type: '',
url: '',
}
}
const url = path.includes('://') ? path : useInstanceStore().server + path
return {
mimetype: fileTypeExt(url),
type: fileTypeExt(url),
url,
}
},

View file

@ -50,7 +50,7 @@
<div class="src-field">
<Attachment
class="src-attachment"
:compact="compact"
:compact="true"
:attachment="attachment(item)"
size="small"
hide-description
@ -70,7 +70,7 @@
class="src-upload media-upload-icon"
:class="{ disabled: shouldBeDisabled }"
normal-button
:accept-types="acceptTypes"
accept-types="image"
@uploaded="event => setMediaFile({ event, index })"
/>
</div>