refactor(ui): use v_flex/h_flex helpers in components
This commit is contained in:
@@ -25,7 +25,7 @@ use gpui::{
|
||||
};
|
||||
|
||||
use crate::components::common::{
|
||||
StyledExt as _, nav_key, paint_selectable_row, selectable_label_color,
|
||||
StyledExt as _, nav_key, paint_selectable_row, selectable_label_color, v_flex,
|
||||
};
|
||||
use crate::icons::{Icon, IconRole, icon};
|
||||
use crate::theme::ActiveTheme as _;
|
||||
@@ -283,10 +283,8 @@ impl RenderOnce for Tree {
|
||||
})
|
||||
.collect();
|
||||
|
||||
div()
|
||||
v_flex()
|
||||
.id(self.id)
|
||||
.flex()
|
||||
.flex_col()
|
||||
.gap_0p5()
|
||||
.text_sm()
|
||||
.refine_style(&self.style)
|
||||
|
||||
Reference in New Issue
Block a user