Generative: the embedding turns by drag past its edge; version diffs are tested
The turned embedding turns through gpui's drag, marked with its view, so a drag keeps turning past the plot's edge. What a chosen version is set against, and its heading, move into versions::compared, with a test. A hidden legend entry dims its key and not its ring, and an embedding refuses a group named twice.
This commit is contained in:
1 parent
e3038647c8
commit
3d9cf1008e
6 files changed
+122
-52
No files matched your search
+9
-5
@@ -64,9 +64,6 @@ impl RenderOnce for ChartLegend {
|
||||
div()
|
||||
.id((self.id.clone(), format!("entry-{ix}")))
|
||||
.flex()
|
||||
.items_center()
|
||||
.gap_1p5()
|
||||
.when(hidden, |entry| entry.opacity(0.4))
|
||||
.when_some(on_toggle, |entry, on_toggle| {
|
||||
entry
|
||||
.px_1()
|
||||
@@ -81,8 +78,15 @@ impl RenderOnce for ChartLegend {
|
||||
})
|
||||
.on_click(move |_, window, cx| on_toggle(&key, window, cx))
|
||||
})
|
||||
.child(div().size(theme.status_dot()).rounded_full().bg(color))
|
||||
.child(name)
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.items_center()
|
||||
.gap_1p5()
|
||||
.when(hidden, |key| key.opacity(0.4))
|
||||
.child(div().size(theme.status_dot()).rounded_full().bg(color))
|
||||
.child(name),
|
||||
)
|
||||
}),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user