[Select] 下拉过滤时高度变化导致弹层跳动,缺少 menu_min_h
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Read the SelectOptions definition and the menu_max_h builder, then trace how drop-up menus size and filter their options. Add the minimum-height option and builder described in the issue; done when setting menu_min_h and menu_max_h to the same value keeps the menu height stable while filtering in the settings window.
Written by the indexing model from the issue text.
Description
搜索型 Select 在 drop-up 场景下,过滤把 20 项缩到 2 项时整个菜单会位移,鼠标目标在点击前跑掉。我们在 SelectOptions 中新增了 menu_min_h: Option 与 menu_min_h(Length) builder,与 menu_max_h 取同值时弹层高度恒定、只原地过滤,已验证可在设置窗口使用。
- Dominant language
- Rust
- Stars
- 20k
- Forks
- 1.2k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 276
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from longbridge/gpui-kit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
longbridge/gpui-kit#3871 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
longbridge/gpui-kit#3852 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
longbridge/gpui-kit#3795 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
longbridge/gpui-kit#3735 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
longbridge/gpui-kit#3711 ·
Maintainers usually reply within 1 day
All issues in longbridge/gpui-kit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
bytecodealliance/rustix#1736 ·
Maintainers usually reply within 1 day
-
area:models enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 84/100
servo/rust-smallvec#864 ·
-
bug frontend ui
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day