🐛 fix(ui): 输入对话框文本垂直居中(任务/配置编辑器) - #6
Merged
Merged
Conversation
固定行高(36)的输入框(名称/服务器/节点/TCP地址)文本顶对齐显得偏上;采样间隔/死区原 Height=30 比 wpfui TextBox 自然高度还矮,加居中后数值偏下且底部被框裁掉一点。统一给所有输入框 VerticalContentAlignment=Center,并去掉采样间隔/死区的写死 Height=30(改用自然高度), 各框高度一致、文本垂直居中、不再裁切。 真机(office)确认:新建任务对话框各输入框文本居中、采样间隔不再偏下遮挡。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ConfigEntryEditorWindow 的 Key/Value 输入框同样在固定 Height=36 行里、缺 VerticalContentAlignment → 文本顶对齐。与任务对话框同一处理:加 VerticalContentAlignment=Center。 排查其余输入弹窗:Tag 编辑器(无固定行高,自然高度)、浏览节点(DockPanel 自然高度)均正常,无需改。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
输入对话框的输入框文本错位 —— 排查了全部输入弹窗:
修复(固定行高里文本顶对齐/被裁)
Height="36"行 → 文本偏上;采样间隔/死区原Height="30"比 wpfui TextBox 自然高度还矮,居中后数值偏下、底部被裁。→ 全部输入框VerticalContentAlignment="Center";采样间隔/死区去掉写死Height。Height="36"行、缺居中 → 文本偏上。→ 加VerticalContentAlignment="Center"。排查正常(无需改)
office 真机逐个确认。
🤖 Generated with Claude Code