Skip to content

Commit

Permalink
editor: Use predefined rounding value for color swatches
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdeviant committed Oct 3, 2024
1 parent cac98b7 commit 6eb6e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/editor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ impl CompletionsMenu {

let color_swatch = completion
.color()
.map(|color| div().size_4().bg(color).rounded(px(2.)));
.map(|color| div().size_4().bg(color).rounded_sm());

div().min_w(px(220.)).max_w(px(540.)).child(
ListItem::new(mat.candidate_id)
Expand Down

0 comments on commit 6eb6e15

Please sign in to comment.