Skip to content

Commit

Permalink
fix(frontend): sparkle内にリンクを入れるとクリック不能になる問題の修正 (#11075)
Browse files Browse the repository at this point in the history
* wip

* Fix 11021
  • Loading branch information
mappi-pr authored Jul 3, 2023
1 parent af3258d commit 6157616
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

### Client
- Fix: サーバーメトリクスが90度傾いている
- Fix: sparkle内にリンクを入れるとクリック不能になる問題の修正

## 13.13.2

Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkSparkle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
</path>
</svg>
-->
<svg v-for="particle in particles" :key="particle.id" :width="width" :height="height" :viewBox="`0 0 ${width} ${height}`" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: -32px; left: -32px;">
<!-- MFMで上位レイヤーに表示されるため、リンクをクリックできるようにstyleにpointer-events: none;を付与。 -->
<svg v-for="particle in particles" :key="particle.id" :width="width" :height="height" :viewBox="`0 0 ${width} ${height}`" xmlns="http://www.w3.org/2000/svg" style="position: absolute; top: -32px; left: -32px; pointer-events: none;">
<path
style="transform-origin: center; transform-box: fill-box;"
:transform="`translate(${particle.x} ${particle.y})`"
Expand Down Expand Up @@ -115,6 +116,5 @@ onUnmounted(() => {
.root {
position: relative;
display: inline-block;
pointer-events: none;
}
</style>

0 comments on commit 6157616

Please sign in to comment.