css: Allow reaction button to be visible in message box.

It enables the reaction button to become visible when clicking on a
message-box in a mobile view.

Fixes #29529.
This commit is contained in:
Pratik
2024-04-11 15:50:46 +05:30
committed by Tim Abbott
parent c727b36e9c
commit 07fbbcd142
2 changed files with 18 additions and 0 deletions

View File

@@ -289,6 +289,11 @@ export function initialize() {
navigate.to_end();
});
$("body").on("click", ".message_row", function () {
$(".selected_msg_for_touchscreen").removeClass("selected_msg_for_touchscreen");
$(this).addClass("selected_msg_for_touchscreen");
});
// MESSAGE EDITING
$("body").on("click", ".edit_content_button", function (e) {

View File

@@ -1377,6 +1377,19 @@ td.pointer {
}
}
.selected_msg_for_touchscreen {
@media (hover: none) {
.message_reactions {
.message_reaction {
+ .reaction_button {
visibility: visible;
pointer-events: all;
}
}
}
}
}
.message_sender {
& i.zulip-icon.zulip-icon-bot {
font-size: 12px;