Repository navigation
侧边栏输入框和两个弹窗改用原生 field-sizing 与 closedby - #471
Merged
Merged
Conversation
This was referenced Nov 14, 2026
Merged
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.
改了什么
field-sizing: content,删掉autosizeInput和它的 10 处调用。高度仍由原来的 min-height / max-height 限住。download.js)和标签选择器(tag-picker.js)点背景关闭改用<dialog closedby="any">,删掉手写的点击判断。两处来自 modern-web-guidance 的 legacy-scan。
行为上唯一的变化:标签选择器的浮层模式(「+ 标签」下方),焦点不在浮层里时按 Esc 也会关闭。原来只有焦点在浮层里才关。
验证
node scripts/selftest.mjs:50 个全过。onClose只调一次,点框内和拖出都不关;浮层模式点外面关闭。field-sizing要 123,closedby要 134):输入框不长高,改为在框内滚动;点背景不关,Esc 照常能关。