logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 7df207c9d479a4641d7695d9d0b83eaa9308b510
parent 962bce5ee3cdff421fcf54dfc4ea2f1af882665c
Author: Henry Jameson <me@hjkos.com>
Date:   Wed,  6 Mar 2024 10:34:56 +0200

emoji management fixes for themes3

Diffstat:

Msrc/components/settings_modal/admin_tabs/emoji_tab.scss6++----
Msrc/components/settings_modal/admin_tabs/emoji_tab.vue36++++++++++++++++++++++++++++--------
Msrc/components/settings_modal/helpers/emoji_editing_popover.vue14+++++++++-----
3 files changed, 39 insertions(+), 17 deletions(-)

diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.scss b/src/components/settings_modal/admin_tabs/emoji_tab.scss @@ -1,5 +1,3 @@ -@import "src/variables"; - .emoji-tab { .btn-group .btn:not(:first-child) { margin-left: 0.5em; @@ -25,7 +23,7 @@ } .emoji-unsaved { - box-shadow: 0 3px 5px var(--cBlue, $fallback--cBlue); + box-shadow: 0 3px 5px var(--cBlue); } .emoji-list { @@ -56,6 +54,6 @@ } .warning { - color: var(--cOrange, $fallback--cOrange); + color: var(--cOrange); } } diff --git a/src/components/settings_modal/admin_tabs/emoji_tab.vue b/src/components/settings_modal/admin_tabs/emoji_tab.vue @@ -43,7 +43,11 @@ <template #content> <div class="emoji-tab-popover-input"> <h3>{{ $t('admin_dash.emoji.remote_pack_instance') }}</h3> - <input v-model="remotePackInstance" :placeholder="$t('admin_dash.emoji.remote_pack_instance')"> + <input + v-model="remotePackInstance" + class="input" + :placeholder="$t('admin_dash.emoji.remote_pack_instance')" + > <button class="button button-default btn emoji-tab-popover-button" type="button" @@ -86,7 +90,11 @@ <template #content> <div class="emoji-tab-popover-input"> <h3>{{ $t('admin_dash.emoji.new_pack_name') }}</h3> - <input v-model="newPackName" :placeholder="$t('admin_dash.emoji.new_pack_name')"> + <input + v-model="newPackName" + :placeholder="$t('admin_dash.emoji.new_pack_name')" + class="input" + > <button class="button button-default btn emoji-tab-popover-button" type="button" @@ -110,7 +118,8 @@ <textarea v-model="packMeta.description" :disabled="pack.remote !== undefined" - class="bio resize-height" /> + class="bio resize-height input" + /> </label> </li> <li> @@ -119,7 +128,8 @@ <ModifiedIndicator :changed="metaEdited('homepage')" message-key="admin_dash.emoji.metadata_changed" /> <input - class="emoji-info-input" v-model="packMeta.homepage" + class="emoji-info-input input" + v-model="packMeta.homepage" :disabled="pack.remote !== undefined"> </label> </li> @@ -128,14 +138,22 @@ {{ $t('admin_dash.emoji.fallback_src') }} <ModifiedIndicator :changed="metaEdited('fallback-src')" message-key="admin_dash.emoji.metadata_changed" /> - <input class="emoji-info-input" v-model="packMeta['fallback-src']" :disabled="pack.remote !== undefined"> + <input + class="emoji-info-input input" + v-model="packMeta['fallback-src']" + :disabled="pack.remote !== undefined" + > </label> </li> <li> <label> {{ $t('admin_dash.emoji.fallback_sha256') }} - <input :disabled="true" class="emoji-info-input" v-model="packMeta['fallback-src-sha256']"> + <input + :disabled="true" + class="emoji-info-input input" + v-model="packMeta['fallback-src-sha256']" + > </label> </li> <li> @@ -202,9 +220,11 @@ <div class="emoji-tab-popover-input"> <label> {{ $t('admin_dash.emoji.download_as_name') }} - <input class="emoji-data-input" + <input + class="emoji-data-input input" v-model="remotePackDownloadAs" - :placeholder="$t('admin_dash.emoji.download_as_name_full')"> + :placeholder="$t('admin_dash.emoji.download_as_name_full')" + > </label> <div v-if="downloadWillReplaceLocal" class="warning"> diff --git a/src/components/settings_modal/helpers/emoji_editing_popover.vue b/src/components/settings_modal/helpers/emoji_editing_popover.vue @@ -25,16 +25,18 @@ <input type="file" accept="image/*" - class="emoji-tab-popover-file" + class="emoji-tab-popover-file input" @change="uploadFile = $event.target.files"> </div> <div> <div class="emoji-tab-popover-input"> <label> {{ $t('admin_dash.emoji.shortcode') }} - <input class="emoji-data-input" + <input + class="emoji-data-input input" v-model="editedShortcode" - :placeholder="$t('admin_dash.emoji.new_shortcode')"> + :placeholder="$t('admin_dash.emoji.new_shortcode')" + > </label> </div> @@ -42,9 +44,11 @@ <label> {{ $t('admin_dash.emoji.filename') }} - <input class="emoji-data-input" + <input + class="emoji-data-input input" v-model="editedFile" - :placeholder="$t('admin_dash.emoji.new_filename')"> + :placeholder="$t('admin_dash.emoji.new_filename')" + > </label> </div>