Increase the indent step size for the collab panel (#3772)

This PR increases the indent step size for the collab panel.

This gives the channel list a clearer hierarchy for nested channels, as
well as help align the disclosures with the parent channel's icon.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-12-21 23:22:22 -05:00 committed by GitHub
parent 80143b2571
commit cd9156886f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2120,6 +2120,7 @@ impl CollabPanel {
ListItem::new(channel_id as usize) ListItem::new(channel_id as usize)
// Add one level of depth for the disclosure arrow. // Add one level of depth for the disclosure arrow.
.indent_level(depth + 1) .indent_level(depth + 1)
.indent_step_size(px(20.))
.selected(is_selected || is_active) .selected(is_selected || is_active)
.toggle(disclosed) .toggle(disclosed)
.on_toggle( .on_toggle(
@ -2190,6 +2191,7 @@ impl CollabPanel {
.inset(false) .inset(false)
// Add one level of depth for the disclosure arrow. // Add one level of depth for the disclosure arrow.
.indent_level(depth + 1) .indent_level(depth + 1)
.indent_step_size(px(20.))
.start_slot( .start_slot(
IconElement::new(Icon::Hash) IconElement::new(Icon::Hash)
.size(IconSize::Small) .size(IconSize::Small)