cleanup + fixes for instance tab

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

View file

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

View file

@ -51,6 +51,7 @@
<li> <li>
<ColorSetting <ColorSetting
hide-draft-buttons hide-draft-buttons
label=""
path=":pleroma.:manifest.:theme_color" path=":pleroma.:manifest.:theme_color"
/> />
</li> </li>
@ -99,7 +100,7 @@
override-backend-description override-backend-description
override-backend-description-label override-backend-description-label
override-available-options override-available-options
:options="limitLocalContentOptions" :options="[...limitLocalContentOptions]"
path=":pleroma.:instance.:limit_to_local_content" path=":pleroma.:instance.:limit_to_local_content"
/> />
</li> </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. // 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 const url = path.includes('://') ? path : useInstanceStore().server + path
return { return {
mimetype: fileTypeExt(url), type: fileTypeExt(url),
url, url,
} }
}, },

View file

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

View file

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

View file

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