Refactor text style helpers

This commit is contained in:
2026-05-09 19:31:12 +08:00
parent 6eabc6a0ec
commit 9f1e051073
7 changed files with 44 additions and 58 deletions

View File

@@ -145,7 +145,7 @@ impl gpui::RenderOnce for IssueListItem {
text(self.title)
.text_sm()
.leading_tight()
.medium()
.font_weight(gpui::FontWeight::MEDIUM)
.w_full()
.min_w_0()
.line_clamp(2),

View File

@@ -117,7 +117,7 @@ impl gpui::Render for Sidebar {
.child(
text("PULL REQUESTS")
.text_xs()
.medium()
.font_weight(gpui::FontWeight::MEDIUM)
.opacity(0.5)
.pl_3()
.py_1(),