From 5c7181ca214d268c8958b15caf295339942d6c93 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 Dec 2021 04:13:45 +0900 Subject: [PATCH] feat(client): svg sparkle effect Resolve #8088 --- CHANGELOG.md | 1 + .../client/assets/sparkle-spritesheet.png | Bin 185 -> 0 bytes packages/client/src/components/sparkle.vue | 236 ++++++++---------- 3 files changed, 106 insertions(+), 131 deletions(-) delete mode 100644 packages/client/assets/sparkle-spritesheet.png diff --git a/CHANGELOG.md b/CHANGELOG.md index d5fa7adfd5..b86365f43e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Improvements - クライアント: ノートプレビューの精度を改善 +- クライアント: MFM sparkleエフェクトの改善 ### Bugfixes - クライアント: 一部のコンポーネントが裏に隠れるのを修正 diff --git a/packages/client/assets/sparkle-spritesheet.png b/packages/client/assets/sparkle-spritesheet.png deleted file mode 100644 index 0defccaf07530ac1793dbbe9bb2153dd6cd1b90f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 185 zcmeAS@N?(olHy`uVBq!ia0vp^(m>44!2%?MPyVw5QVpIijv*44=T6wm#bhYZ!Y(cE zP_wzVKyhoV6619>rRT0Y&Oa)W`nbGcd4%1xnT?{q);_RReYW?~ZI!B9c~%>?rcAmL zRQ7XXhG5RZGbidI^!%Q3w9R^XAg71tj)kz}L1SfM;h7IQ4^2JQ>h#F@_RH+(g^$i} l3wNzLWjk}b$KUTKtqWeCpW7hfy$R?R22WQ%mvv4FO#s6LOeO#T diff --git a/packages/client/src/components/sparkle.vue b/packages/client/src/components/sparkle.vue index 21b57f1580..a365a15edf 100644 --- a/packages/client/src/components/sparkle.vue +++ b/packages/client/src/components/sparkle.vue @@ -1,14 +1,69 @@ @@ -169,10 +143,10 @@ export default defineComponent({ display: inline-block; } - > canvas { + > svg { position: absolute; - top: -0.1em; - left: -0.1em; + top: -32px; + left: -32px; pointer-events: none; } }