fix collapsed notifications incorrect styles

This commit is contained in:
Henry Jameson 2024-02-27 01:08:04 +02:00
commit d8827932bc
6 changed files with 18 additions and 26 deletions

View file

@ -79,6 +79,12 @@ export default {
required: false,
type: Boolean,
default: false
},
// Faint style (for notifs)
faint: {
required: false,
type: Boolean,
default: false
}
},
// NEVER EVER TOUCH DATA INSIDE RENDER
@ -277,7 +283,7 @@ export default {
// DO NOT USE SLOTS they cause a re-render feedback loop here.
// slots updated -> rerender -> emit -> update up the tree -> rerender -> ...
// at least until vue3?
const result = <span class="RichContent">
const result = <span class={['RichContent', this.faint ? '-faint' : '']}>
{ pass2 }
</span>

View file

@ -1,6 +1,15 @@
.RichContent {
font-family: var(--font);
&.-faint {
/* stylelint-disable declaration-no-important */
--text: var(--textFaint) !important;
--link: var(--linkFaint) !important;
--funtextGreentext: var(--funtextGreentextFaint) !important;
--funtextCyantext: var(--funtextCyantextFaint) !important;
/* stylelint-enable declaration-no-important */
}
blockquote {
margin: 0.2em 0 0.2em 0.2em;
font-style: italic;