forge
Explore
Log in

Don't you dare go Hollow

Message actions bar sits fully above its message, the message keeps its hover highlight while the bar is hovered, and the reaction picker opens upward so nothing covers the message

Browse files at this commit

3bc142f65100c46be73dc5a500101321062a0bbaAhmet Kaan GümüşParent: f6f9818
  • style
    • message actions bar sits fully above its message, the message keeps its hover highlight while the bar is hovered, and the reaction picker opens upward so nothing covers the message
Show full message
💄 style: message actions bar sits fully above its message, the message keeps its hover highlight while the bar is hovered, and the reaction picker opens upward so nothing covers the message
crates/client/src/gui/chat.rsmodified+4 -1
@@ -3559,6 +3559,9 @@ fn render_message(
3559 .flex_col()3559 .flex_col()
3560 .min_w_0()3560 .min_w_0()
3561 .hover(|style| style.bg(palette.hover))3561 .hover(|style| style.bg(palette.hover))
3562+ .when(chat.hover_bar == Some(message.id), |this| {
3563+ this.bg(palette.hover)
3564+ })
3562 .when(first && spaced && !selecting, |this| this.mt(px(space::LG)))3565 .when(first && spaced && !selecting, |this| this.mt(px(space::LG)))
3563 .when(highlighted, |this| this.bg(palette.tokens.press()))3566 .when(highlighted, |this| this.bg(palette.tokens.press()))
3564 .when(mentioned, |this| {3567 .when(mentioned, |this| {
@@ -3680,7 +3683,7 @@ fn render_message(
3680 div()3683 div()
3681 .absolute()3684 .absolute()
3682 .right_0()3685 .right_0()
3683- .top(px(-space::LG))3686+ .bottom(gpui_kit::relative(1.))
3684 .child(message_actions::actions(message, chat, me, entity, palette))3687 .child(message_actions::actions(message, chat, me, entity, palette))
3685 })),3688 })),
3686 )3689 )
crates/client/src/gui/message_actions.rsmodified+1 -1
@@ -92,7 +92,7 @@ pub fn react_popover(
92 let entity = entity.clone();92 let entity = entity.clone();
93 93
94 Popover::new(format!("react_{}", message.id))94 Popover::new(format!("react_{}", message.id))
95- .anchor(Anchor::TopRight)95+ .anchor(Anchor::BottomRight)
96 .appearance(false)96 .appearance(false)
97 .trigger(trigger_icon(97 .trigger(trigger_icon(
98 format!("react_trigger_{}", message.id),98 format!("react_trigger_{}", message.id),