mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 01:34:16 +03:00
Change background for the max width of the completion/action elements
This commit is contained in:
parent
cad6bab48e
commit
513ddf1861
@ -910,7 +910,7 @@ impl CompletionsMenu {
|
|||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
h_flex().flex_grow().min_w(px(120.)).child(
|
h_flex().flex_grow().w_full().min_w(px(120.)).child(
|
||||||
ListItem::new(mat.candidate_id)
|
ListItem::new(mat.candidate_id)
|
||||||
.inset(true)
|
.inset(true)
|
||||||
.selected(item_ix == selected_item)
|
.selected(item_ix == selected_item)
|
||||||
@ -1078,6 +1078,7 @@ impl CodeActionsMenu {
|
|||||||
let colors = cx.theme().colors();
|
let colors = cx.theme().colors();
|
||||||
h_flex()
|
h_flex()
|
||||||
.flex_grow()
|
.flex_grow()
|
||||||
|
.w_full()
|
||||||
.px_2()
|
.px_2()
|
||||||
.min_w(px(120.))
|
.min_w(px(120.))
|
||||||
.text_color(colors.text)
|
.text_color(colors.text)
|
||||||
|
@ -149,6 +149,7 @@ impl ParentElement for ListItem {
|
|||||||
impl RenderOnce for ListItem {
|
impl RenderOnce for ListItem {
|
||||||
fn render(self, cx: &mut WindowContext) -> impl IntoElement {
|
fn render(self, cx: &mut WindowContext) -> impl IntoElement {
|
||||||
h_flex()
|
h_flex()
|
||||||
|
.flex_grow()
|
||||||
.id(self.id)
|
.id(self.id)
|
||||||
.w_full()
|
.w_full()
|
||||||
.relative()
|
.relative()
|
||||||
|
Loading…
Reference in New Issue
Block a user