| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
command: Keep item row radius concentric with the frame (#3285) ## Summary Bordered `Command` draws a `radius_lg` frame + `border_1`, and its list has `p_1`, but every row used `theme.radius`. At the top/bottom corners the selected row's fill was rounder than the frame (8px frame, 5px inset → should be 3px, was 6px). Row radius is now `max(outer - rem * 0.25 - border, 0)`: - bordered: `outer` = the command's own radius if set, else `radius_lg`; border 1px - borderless with its own `.rounded(..)`: `outer` = that radius, no border - borderless without a radius: unchanged (`theme.radius`) — the frame belongs to the host The inset uses `window.rem_size()` so it tracks the user font size. ## Test plan - [x] `cargo clippy -p gpui-component` - [x] `cargo test -p gpui-component --lib command` (36 passed) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> | 1 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 | |
Bump v0.7.0 | 3 小时前 |