diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-27 01:08:04 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-27 01:08:04 +0200 |
| commit | d8827932bc8f329c66bdf23fa0eb7af4ed41179a (patch) | |
| tree | c32b63ecb9d9e0734339288cfd405cd9d44002e2 /src/components/rich_content/rich_content.jsx | |
| parent | adc47ad38ac4dd28866d82664f587c71fdf0ca3d (diff) | |
fix collapsed notifications incorrect styles
Diffstat (limited to 'src/components/rich_content/rich_content.jsx')
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index ff14a58a..99d7daca 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -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> |
