Skip to content

Commit

Permalink
Add some space before the Visible History UI after whatever UI is ren…
Browse files Browse the repository at this point in the history
…dered by the space view class
  • Loading branch information
abey79 committed Nov 28, 2023
1 parent f7ab1ef commit e082a08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/re_viewer/src/ui/selection_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ fn blueprint_ui(
.clone()
.unwrap_or(resolved_entity_props.clone());

let cursor = ui.cursor();

space_view
.class(ctx.space_view_class_registry)
.selection_ui(
Expand All @@ -449,6 +451,12 @@ fn blueprint_ui(
&mut props,
);

if cursor != ui.cursor() {
// add some space if something was rendered by selection_ui
//TODO(ab): use design token
ui.add_space(16.0);
}

visible_history_ui(
ctx,
ui,
Expand Down

0 comments on commit e082a08

Please sign in to comment.