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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user