mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 06:40:17 +00:00
nav_button: Fix double border between nav buttons.
Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
parent
b72a42ec29
commit
7314456685
1 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,11 @@ pub(super) fn render_nav_button<V: View>(
|
|||
..container_style.corner_radii
|
||||
},
|
||||
};
|
||||
if direction == Direction::Prev {
|
||||
// Remove right border so that when both Next and Prev buttons are
|
||||
// next to one another, there's no double border between them.
|
||||
container_style.border.right = false;
|
||||
}
|
||||
label.with_style(container_style)
|
||||
})
|
||||
.on_click(MouseButton::Left, on_click)
|
||||
|
|
Loading…
Reference in a new issue