fix: align message timestamps in greeter panel

This commit is contained in:
2026-10-19 20:55:37 +07:00
parent deed021332
commit 03f98f5fa8
2 changed files with 17 additions and 18 deletions
-6
View File
@@ -73,22 +73,16 @@ pub enum RoomKind {
pub struct Room {
/// Conversation ID
pub id: u64,
/// The timestamp of the last message in the room
pub created_at: Timestamp,
/// Subject of the room
pub(crate) subject: Option<SharedString>,
/// All members of the room
pub(super) members: Vec<PublicKey>,
/// Kind
pub kind: RoomKind,
/// Configuration
config: RoomConfig,
/// Person directory, attached when the room is registered
directory: Option<Entity<Directory>>,
}
+17 -12
View File
@@ -246,18 +246,26 @@ impl GreeterPanel {
.items_center()
.justify_end()
.child(
div().group_hover("", |this| this.invisible()).child(
div()
.text_style(TextStyle::Caption)
.text_color(cx.theme().text_faint)
.child(created_at),
),
div()
.absolute()
.left_0()
.right_0()
.top_0()
.bottom_0()
.group_hover("", |this| this.invisible())
.child(
div()
.text_align(gpui::TextAlign::Right)
.text_style(TextStyle::Caption)
.text_color(cx.theme().text_faint)
.child(created_at),
),
)
.child(
Button::new(format!("response-{index}"))
.label("Response")
.xsmall()
.primary()
.ghost()
.invisible()
.group_hover("", |this| this.visible())
.on_click({
@@ -359,13 +367,10 @@ impl GreeterPanel {
.right_0()
.top_0()
.bottom_0()
.flex()
.items_center()
.justify_center()
.group_hover("", |this| this.invisible())
.child(
div()
.font_normal()
.text_align(gpui::TextAlign::Right)
.text_style(TextStyle::Caption)
.text_color(cx.theme().text_faint)
.child(created_at),
@@ -375,7 +380,7 @@ impl GreeterPanel {
Button::new(format!("reply-{index}"))
.label("Reply")
.xsmall()
.primary()
.ghost()
.invisible()
.group_hover("", |this| this.visible())
.on_click({