diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-08 12:17:32 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-08 12:17:32 +0300 |
| commit | 3f7cf52f531220113deda594bcc5f331cdf01951 (patch) | |
| tree | c85b37c8a8c8537be047387a5a8629431b8bfacf /src/components/update_notification/update_notification.js | |
| parent | 95f03a56abe9211e5e9550f226ec0b4fbb18758d (diff) | |
proper animation
Diffstat (limited to 'src/components/update_notification/update_notification.js')
| -rw-r--r-- | src/components/update_notification/update_notification.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js index 399b8d46..ba008d81 100644 --- a/src/components/update_notification/update_notification.js +++ b/src/components/update_notification/update_notification.js @@ -29,6 +29,11 @@ const UpdateNotification = { 'shape-outside': 'url(' + this.pleromaTanVariant + ')' } }, + dynamicStyles () { + return { + '--____extraInfoGroupHeight': this.contentHeight + 'px' + } + }, shouldShow () { return !this.$store.state.instance.disableUpdateNotification && this.$store.state.users.currentUser && @@ -53,8 +58,8 @@ const UpdateNotification = { }, mounted () { setTimeout(() => { - this.contentHeight = this.$refs.content.offsetHeight - }, 10) + this.contentHeight = this.$refs.animatedText.scrollHeight + }, 1000) } } |
