Skip to content

bugfix: 修复筛选/排序下拉框宽度显示问题并更新版本 v1.7.4#31

Merged
amazing-fish merged 2 commits into
mainfrom
codex/fix-width-issue-in-filter-and-sort-box
Jan 10, 2026
Merged

bugfix: 修复筛选/排序下拉框宽度显示问题并更新版本 v1.7.4#31
amazing-fish merged 2 commits into
mainfrom
codex/fix-width-issue-in-filter-and-sort-box

Conversation

@amazing-fish

Copy link
Copy Markdown
Owner

Motivation

  • 修复筛选和排序下拉框在某些主题/布局下文本被截断或出现右侧空白“死区”的显示问题。
  • 保持锚点与版本控制约定一致,使用 v主.次.修 规则更新修订号。

Description

  • todo_app/main_window.py 中改进 _update_combo_compact_width,使用 QStyleQStyleOptionComboBox 基于样式计算控件所需宽度以避免截断或空白区。
  • 为此新增了 QStyleQStyleOptionComboBox 的导入并调整逻辑以兼容空列表情况。
  • 将应用版本号在 todo_app/constants.py 中从 1.7.3 更新为 1.7.4
  • 同步更新 anchor.md 中的锚点与最近约定变更,记录此次 bugfix

Testing

  • 执行了语法检查命令 python -m compileall todo_app 并成功编译所有模块(通过)。
  • 已在代码静态运行环境下验证无语法错误,因为为桌面 GUI,未进行自动化 UI 交互测试。

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd3b72676b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread todo_app/main_window.py Outdated
@amazing-fish
amazing-fish merged commit a620a11 into main Jan 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant