fix(messages): bottom-align time and receipt next to reactions
- same 4 px bottom inset as a bubble without reactions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -50,7 +50,8 @@ const SERIES_START_GAP: f32 = 8.;
50
50
pub(super) const BODY_SIZE: f32 = 13.5;
51
51
const MAX_WIDTH_RATIO: f32 = 0.7;
52
52
const NARROW_BUBBLE_WIDTH: f32 = 300.;
53
const REACTION_FOOTER_HEIGHT: f32 = 24.;
53
const BUBBLE_PADDING_Y: f32 = 8.;
54
const META_BOTTOM_INSET: f32 = 4.;
54
55
const META_SIZE: f32 = 11.;
55
56
const META_CHECK_SIZE: f32 = 15.;
56
57
const SAVED_MARK_SIZE: f32 = 12.;
@@ -157,7 +158,7 @@ fn bubble(
157
158
.rounded_br(px(corners.bottom_right))
158
159
.rounded_bl(px(corners.bottom_left))
159
160
.px(px(12.))
160
.py(px(8.))
161
.py(px(BUBBLE_PADDING_Y))
161
162
})
162
163
.text_size(px(BODY_SIZE))
163
164
.line_height(relative(1.45));
@@ -268,9 +269,8 @@ fn bubble(
268
269
)
269
270
.child(
270
271
h_flex()
271
.h(px(REACTION_FOOTER_HEIGHT))
272
272
.flex_none()
273
.items_center()
273
.mb(px(META_BOTTOM_INSET - BUBBLE_PADDING_Y))
274
274
.child(bubble_meta(row, own, saved)),
275
275
),
276
276
);
@@ -283,7 +283,7 @@ fn bubble(
283
283
div()
284
284
.absolute()
285
285
.right(px(8.))
286
.bottom(px(4.))
286
.bottom(px(META_BOTTOM_INSET))
287
287
.child(bubble_meta(row, own, saved)),
288
288
);
289
289
}
@@ -50,7 +50,8 @@ const SERIES_START_GAP: f32 = 8.;50
pub(super) const BODY_SIZE: f32 = 13.5;50
pub(super) const BODY_SIZE: f32 = 13.5;51
const MAX_WIDTH_RATIO: f32 = 0.7;51
const MAX_WIDTH_RATIO: f32 = 0.7;52
const NARROW_BUBBLE_WIDTH: f32 = 300.;52
const NARROW_BUBBLE_WIDTH: f32 = 300.;53
const REACTION_FOOTER_HEIGHT: f32 = 24.;53
const BUBBLE_PADDING_Y: f32 = 8.;54
const META_BOTTOM_INSET: f32 = 4.;54
const META_SIZE: f32 = 11.;55
const META_SIZE: f32 = 11.;55
const META_CHECK_SIZE: f32 = 15.;56
const META_CHECK_SIZE: f32 = 15.;56
const SAVED_MARK_SIZE: f32 = 12.;57
const SAVED_MARK_SIZE: f32 = 12.;@@ -157,7 +158,7 @@ fn bubble(157
.rounded_br(px(corners.bottom_right))158
.rounded_br(px(corners.bottom_right))158
.rounded_bl(px(corners.bottom_left))159
.rounded_bl(px(corners.bottom_left))159
.px(px(12.))160
.px(px(12.))160
.py(px(8.))161
.py(px(BUBBLE_PADDING_Y))161
})162
})162
.text_size(px(BODY_SIZE))163
.text_size(px(BODY_SIZE))163
.line_height(relative(1.45));164
.line_height(relative(1.45));@@ -268,9 +269,8 @@ fn bubble(268
)269
)269
.child(270
.child(270
h_flex()271
h_flex()271
.h(px(REACTION_FOOTER_HEIGHT))272
.flex_none()272
.flex_none()273
.items_center()273
.mb(px(META_BOTTOM_INSET - BUBBLE_PADDING_Y))274
.child(bubble_meta(row, own, saved)),274
.child(bubble_meta(row, own, saved)),275
),275
),276
);276
);@@ -283,7 +283,7 @@ fn bubble(283
div()283
div()284
.absolute()284
.absolute()285
.right(px(8.))285
.right(px(8.))286
.bottom(px(4.))286
.bottom(px(META_BOTTOM_INSET))287
.child(bubble_meta(row, own, saved)),287
.child(bubble_meta(row, own, saved)),288
);288
);289
}289
}