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: f41f7c77d94ec0342554fcc329130765cf14bbe9
parent 55598d1cadcb1b5ab5c76f2df3a2962c786e1356
Author: tusooa <tusooa@kazv.moe>
Date:   Wed, 27 Mar 2024 18:59:32 -0400

Make drafts work with Themes 3

Diffstat:

Msrc/App.scss5++---
Msrc/components/draft/draft.vue12++++--------
Msrc/components/draft_closer/draft_closer.vue2+-
Msrc/components/navigation/navigation_entry.vue4++--
Msrc/components/navigation/navigation_pins.vue10++++------
Msrc/components/side_drawer/side_drawer.vue2+-
6 files changed, 14 insertions(+), 21 deletions(-)

diff --git a/src/App.scss b/src/App.scss @@ -749,9 +749,8 @@ option { margin-top: -1em; } - &.badge-neutral { - background-color: $fallback--cGreen; - background-color: var(--badgeNeutral, $fallback--cGreen); + &.-neutral { + background-color: var(--badgeNeutral); color: white; color: var(--badgeNeutralText, white); } diff --git a/src/components/draft/draft.vue b/src/components/draft/draft.vue @@ -72,18 +72,14 @@ <script src="./draft.js"></script> <style lang="scss"> -@import "src/variables"; - .Draft { margin: 1em; .status-content { - border: 1px solid $fallback--faint; - border-color: var(--faint, $fallback--faint); - border-radius: $fallback--inputRadius; - border-radius: var(--inputRadius, $fallback--inputRadius); - color: $fallback--text; - color: var(--text, $fallback--text); + border: 1px solid; + border-color: var(--faint); + border-radius: var(--inputRadius); + color: var(--text); padding: 0.5em; margin: 0.5em 0; } diff --git a/src/components/draft_closer/draft_closer.vue b/src/components/draft_closer/draft_closer.vue @@ -5,7 +5,7 @@ v-body-scroll-lock="true" class="confirm-modal" :on-cancel="cancel" - > + > <template #header> <span> {{ $t('post_status.close_confirm_title') }} diff --git a/src/components/navigation/navigation_entry.vue b/src/components/navigation/navigation_entry.vue @@ -34,8 +34,8 @@ <slot /> <div v-if="item.badgeGetter && getters[item.badgeGetter]" - class="badge -notification" - :class="[`badge-${item.badgeStyle}`]" + class="badge" + :class="[`-${item.badgeStyle}`]" > {{ getters[item.badgeGetter] }} </div> diff --git a/src/components/navigation/navigation_pins.vue b/src/components/navigation/navigation_pins.vue @@ -19,8 +19,8 @@ >{{ item.iconLetter }}</span> <div v-if="item.badgeGetter && getters[item.badgeGetter]" - class="badge -dot -notification" - :class="[`alert-dot-${item.badgeStyle}`]" + class="badge -dot" + :class="[`-${item.badgeStyle}`]" /> </router-link> </span> @@ -36,13 +36,11 @@ height: 100%; &.alert-dot-notification { - background-color: $fallback--cRed; - background-color: var(--badgeNotification, $fallback--cRed); + background-color: var(--badgeNotification); } &.alert-dot-neutral { - background-color: $fallback--cGreen; - background-color: var(--badgeNeutral, $fallback--cGreen); + background-color: var(--badgeNeutral); } .pinned-item { diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue @@ -255,7 +255,7 @@ /> {{ $t('nav.drafts') }} <span v-if="draftCount" - class="badge badge-neutral" + class="badge -neutral" > {{ draftCount }} </span>