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>