logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: f7f09f0dbc0514bd800c15a805588af9b12fd803
parent bcea217705a721b6ae8591e847ca3b59364e5dcd
Author: Henry Jameson <me@hjkos.com>
Date:   Tue, 18 Feb 2025 00:07:45 +0200

attachment buttons

Diffstat:

Msrc/components/attachment/attachment.style.js4++--
Msrc/components/attachment/attachment.vue18+++++++++---------
Msrc/services/theme_data/theme_data_3.service.js4+++-
3 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/src/components/attachment/attachment.style.js b/src/components/attachment/attachment.style.js @@ -4,7 +4,7 @@ export default { notEditable: true, validInnerComponents: [ 'Border', - 'ButtonUnstyled', + 'Button', 'Input' ], defaultRules: [ @@ -14,7 +14,7 @@ export default { } }, { - component: 'ButtonUnstyled', + component: 'Button', parent: { component: 'Attachment' }, directives: { background: '#FFFFFF', diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue @@ -1,7 +1,7 @@ <template> <button v-if="usePlaceholder" - class="Attachment -placeholder button-unstyled" + class="Attachment -placeholder button-default" :class="classNames" @click="openModal" > @@ -23,7 +23,7 @@ > <button v-if="remove" - class="button-unstyled attachment-button" + class="button-default attachment-button" @click.prevent="onRemove" > <FAIcon icon="trash-alt" /> @@ -81,7 +81,7 @@ > <button v-if="type === 'flash' && flashLoaded" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.attachment_stop_flash')" @click.prevent="stopFlash" > @@ -89,7 +89,7 @@ </button> <button v-if="attachment.description && size !== 'small' && !edit && type !== 'unknown'" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.show_attachment_description')" @click.prevent="toggleDescription" > @@ -97,7 +97,7 @@ </button> <button v-if="!useModal && type !== 'unknown'" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.show_attachment_in_modal')" @click.prevent="openModalForce" > @@ -105,7 +105,7 @@ </button> <button v-if="nsfw && hideNsfwLocal" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.hide_attachment')" @click.prevent="toggleHidden" > @@ -113,7 +113,7 @@ </button> <button v-if="shiftUp" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.move_up')" @click.prevent="onShiftUp" > @@ -121,7 +121,7 @@ </button> <button v-if="shiftDn" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.move_down')" @click.prevent="onShiftDn" > @@ -129,7 +129,7 @@ </button> <button v-if="remove" - class="button-unstyled attachment-button" + class="button-default attachment-button" :title="$t('status.remove_attachment')" @click.prevent="onRemove" > diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js @@ -33,9 +33,11 @@ const components = { Icon: null, Border: null, PanelHeader: null, + Attachment: null, Panel: null, Chat: null, - ChatMessage: null + ChatMessage: null, + Button: null } export const findShadow = (shadows, { dynamicVars, staticVars }) => {