Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#13266 がまとまっていませんが試作が出来たのでdraftで置いておきます。
What
現在は特定のMFM断片の検知や文字数カウントなどによってノートを畳む条件を決めていますが、
それを「ノートのclientHeightが一定値を超える」という条件一つに変更します。
Why
各種偽陰・偽陽を解消できると思います。
Additional info (optional)
具体的な手順としては、
<div ref="collapsibleArea">
で囲っておくcollapsibleArea.value.clientHeight
を計測し、一定値を上回るなら「もっと見る」を表示、下回るなら畳み状態を解除という感じになります。
コンポーネントが一度レンダリングされるまで大きさが分からない以上どうしてもチラつき覚悟の処理になりますが、この手順で違和感を最小限に抑えられると思います。
Checklist