発言編集ウィンドウを、できるかぎり編集対象の発言の近くで開かれるように#48
Draft
ViVi-shark wants to merge 5 commits into
Draft
Conversation
Contributor
Author
|
一定条件下で問題があった |
0817964 to
1fc5c35
Compare
Contributor
Author
|
#48 (comment) で言った問題は解消したはずですが、すこし実卓で様子を見ます |
added 4 commits
October 10, 2024 15:58
発言編集ウィンドウの大きさを制限するにあたって、テキストエリア部分をスクロールさせるかたちで吸収したいので
1fc5c35 to
bab99c2
Compare
bab99c2 to
09584e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
2024/10/10 11:35 ―― 以下、全体的に書き直しました
従来の挙動
従来は、常に画面左下付近に開かれていた。
従来の挙動における問題点
あたらしい挙動
できるかぎり、編集対象の発言の近く(編集対象の発言要素の下端のちょっと下)で開くように。
ただし、当該発言の下端がチャットログ領域の下端よりもなお下にあるような場合(※『ダブルクロス』の「トレーラー」のような巨大な発言を編集しようとするとよく起こる)は、代わりに、チャットログ領域の下端あたりに開く。
備考
本件の主旨そのものではないが、ついでに、発言編集テキストエリアの自動サイズ調整をやめた。 e00f3d9
これは、(やはり『ダブルクロス』の「トレーラー」のような)巨大な発言を編集しようとしたとき、テキストエリアが異様に巨大化してしまうという問題があったことによる。
(また、そのように巨大化した場合、発言編集ウィンドウの全体でスクロールが発生していた(=見出しも装飾ボタンもまとめてスクロールされていた)。これは不便なので、見出しと装飾ボタンはスクロール対象外にして、テキストエリアだけをスクロールするようにした)
あと、発言編集ウィンドウの横幅をリサイズしたときにテキストエリアがついてこなかったので、ついてくるようにした。 546cd33
発言編集テキストエリア(のとくに上端)が1ドットくらい送信ボタンとずれて表示されるのもついでに直した。 2ab3fec