fix(composer): post subject field tall enough for descenders
- Subject input gets an explicit 1.4 line height so the j and g descenders are not clipped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -43,6 +43,7 @@ const CLOSE_TOOLTIP: &str = "Close";
43
43
const AUTHOR_AVATAR: f32 = 24.;
44
44
const CARD_INSET: f32 = 12.;
45
45
const SUBJECT_SIZE: f32 = 18.;
46
const SUBJECT_LINE: f32 = 1.4;
46
47
const INPUT_TEXT_SCALE: f32 = 0.875;
47
48
const SUBJECT_INSET: f32 = 8.;
48
49
const TEXT_INSET: f32 = 16.;
@@ -491,6 +492,8 @@ impl Composer {
491
492
Input::new(&subject)
492
493
.appearance(false)
493
494
.bordered(false)
495
.h(px(SUBJECT_SIZE * SUBJECT_LINE))
496
.line_height(px(SUBJECT_SIZE * SUBJECT_LINE))
494
497
.with_size(Size::Size(px(SUBJECT_SIZE / INPUT_TEXT_SCALE))),
495
498
),
496
499
)
@@ -43,6 +43,7 @@ const CLOSE_TOOLTIP: &str = "Close";43
const AUTHOR_AVATAR: f32 = 24.;43
const AUTHOR_AVATAR: f32 = 24.;44
const CARD_INSET: f32 = 12.;44
const CARD_INSET: f32 = 12.;45
const SUBJECT_SIZE: f32 = 18.;45
const SUBJECT_SIZE: f32 = 18.;46
const SUBJECT_LINE: f32 = 1.4;46
const INPUT_TEXT_SCALE: f32 = 0.875;47
const INPUT_TEXT_SCALE: f32 = 0.875;47
const SUBJECT_INSET: f32 = 8.;48
const SUBJECT_INSET: f32 = 8.;48
const TEXT_INSET: f32 = 16.;49
const TEXT_INSET: f32 = 16.;@@ -491,6 +492,8 @@ impl Composer {491
Input::new(&subject)492
Input::new(&subject)492
.appearance(false)493
.appearance(false)493
.bordered(false)494
.bordered(false)495
.h(px(SUBJECT_SIZE * SUBJECT_LINE))496
.line_height(px(SUBJECT_SIZE * SUBJECT_LINE))494
.with_size(Size::Size(px(SUBJECT_SIZE / INPUT_TEXT_SCALE))),497
.with_size(Size::Size(px(SUBJECT_SIZE / INPUT_TEXT_SCALE))),495
),498
),496
)499
)