Adjust list item & pickers spacing (#14250)
This commit is contained in:
parent
c1aa4d939c
commit
e50811c425
4 changed files with 6 additions and 4 deletions
|
@ -268,7 +268,7 @@ impl PickerDelegate for PromptPickerDelegate {
|
||||||
.flex_none()
|
.flex_none()
|
||||||
.py_1()
|
.py_1()
|
||||||
.px_2()
|
.px_2()
|
||||||
.mx_2()
|
.mx_1()
|
||||||
.child(editor.clone())
|
.child(editor.clone())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -766,6 +766,7 @@ impl PromptLibrary {
|
||||||
.capture_action(cx.listener(Self::focus_active_prompt))
|
.capture_action(cx.listener(Self::focus_active_prompt))
|
||||||
.bg(cx.theme().colors().panel_background)
|
.bg(cx.theme().colors().panel_background)
|
||||||
.h_full()
|
.h_full()
|
||||||
|
.px_1()
|
||||||
.w_1_3()
|
.w_1_3()
|
||||||
.overflow_x_hidden()
|
.overflow_x_hidden()
|
||||||
.child(
|
.child(
|
||||||
|
|
|
@ -110,7 +110,7 @@ pub trait PickerDelegate: Sized + 'static {
|
||||||
.overflow_hidden()
|
.overflow_hidden()
|
||||||
.flex_none()
|
.flex_none()
|
||||||
.h_9()
|
.h_9()
|
||||||
.px_4()
|
.px_3()
|
||||||
.child(editor.clone()),
|
.child(editor.clone()),
|
||||||
)
|
)
|
||||||
.child(Divider::horizontal())
|
.child(Divider::horizontal())
|
||||||
|
@ -527,7 +527,7 @@ impl<D: PickerDelegate> Picker<D> {
|
||||||
)
|
)
|
||||||
.with_sizing_behavior(sizing_behavior)
|
.with_sizing_behavior(sizing_behavior)
|
||||||
.flex_grow()
|
.flex_grow()
|
||||||
.py_2()
|
.py_1()
|
||||||
.track_scroll(scroll_handle.clone())
|
.track_scroll(scroll_handle.clone())
|
||||||
.into_any_element(),
|
.into_any_element(),
|
||||||
ElementContainer::List(state) => list(state.clone())
|
ElementContainer::List(state) => list(state.clone())
|
||||||
|
|
|
@ -162,7 +162,7 @@ impl RenderOnce for ListItem {
|
||||||
// When an item is inset draw the indent spacing outside of the item
|
// When an item is inset draw the indent spacing outside of the item
|
||||||
.when(self.inset, |this| {
|
.when(self.inset, |this| {
|
||||||
this.ml(self.indent_level as f32 * self.indent_step_size)
|
this.ml(self.indent_level as f32 * self.indent_step_size)
|
||||||
.px_2()
|
.px_1()
|
||||||
})
|
})
|
||||||
.when(!self.inset && !self.disabled, |this| {
|
.when(!self.inset && !self.disabled, |this| {
|
||||||
this
|
this
|
||||||
|
|
|
@ -273,6 +273,7 @@ impl PickerDelegate for BranchListDelegate {
|
||||||
let label = if self.last_query.is_empty() {
|
let label = if self.last_query.is_empty() {
|
||||||
Label::new("Recent Branches")
|
Label::new("Recent Branches")
|
||||||
.size(LabelSize::Small)
|
.size(LabelSize::Small)
|
||||||
|
.mt_1()
|
||||||
.ml_3()
|
.ml_3()
|
||||||
.into_any_element()
|
.into_any_element()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue