refactor: impl Styled for Text
This commit is contained in:
@@ -146,7 +146,9 @@ impl gpui::RenderOnce for IssueListItem {
|
||||
.text_sm()
|
||||
.leading_tight()
|
||||
.medium()
|
||||
.styled(|it| it.w_full().min_w_0().line_clamp(2)),
|
||||
.w_full()
|
||||
.min_w_0()
|
||||
.line_clamp(2),
|
||||
)
|
||||
.child(description_text),
|
||||
)
|
||||
|
||||
@@ -119,7 +119,8 @@ impl gpui::Render for Sidebar {
|
||||
.text_xs()
|
||||
.medium()
|
||||
.opacity(0.5)
|
||||
.styled(|it| it.pl_3().py_1()),
|
||||
.pl_3()
|
||||
.py_1(),
|
||||
)
|
||||
.children(pull_request_sidebar_items),
|
||||
)
|
||||
|
||||
@@ -277,14 +277,12 @@ impl GithubStepView {
|
||||
text(String::from(c))
|
||||
.bold()
|
||||
.text_2xl()
|
||||
.styled(move |it| {
|
||||
it.p_3()
|
||||
.font_family("CommitMono")
|
||||
.border_1()
|
||||
.border_color(border_color)
|
||||
.rounded_lg()
|
||||
.bg(bg_color)
|
||||
})
|
||||
.p_3()
|
||||
.font_family("CommitMono")
|
||||
.border_1()
|
||||
.border_color(border_color)
|
||||
.rounded_lg()
|
||||
.bg(bg_color)
|
||||
.when(is_loading_code, |it| it.opacity(0.5))
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
@@ -16,7 +16,7 @@ pub(crate) fn setup_complete_step() -> impl gpui::IntoElement {
|
||||
.flex_col()
|
||||
.items_center()
|
||||
.justify_center()
|
||||
.child(text("ദ്ദി/ᐠ - ⩊ -マ.ᐟ").text_2xl().styled(|it| it.mb_4()))
|
||||
.child(text("ദ്ദി/ᐠ - ⩊ -マ.ᐟ").text_2xl().mb_4())
|
||||
.child(text("Setup complete!").bold().text_2xl())
|
||||
.child(text("You can now start using Novem.").opacity(0.8)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user