Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_body: Hyphenate message-time class.

Karl Stolley1425d2f71f53
diff --git a/web/src/message_list_tooltips.ts b/web/src/message_list_tooltips.ts
index 0041f8f4f21..a6911e7a418 100644
--- a/web/src/message_list_tooltips.ts
+++ b/web/src/message_list_tooltips.ts
@@ -241,7 +241,7 @@ export function initialize(): void {
},
});
- message_list_tooltip(".message-list .message_time", {
+ message_list_tooltip(".message-list .message-time", {
onShow(instance) {
const $time_elem = $(instance.reference);
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css
index f3036c25f86..f8fdec576e4 100644
--- a/web/styles/dark_theme.css
+++ b/web/styles/dark_theme.css
@@ -525,10 +525,6 @@
color: hsl(0deg 0% 42% / 90%) !important;
}
- .message_time:hover {
- color: var(--color-message-action-interactive);
- }
-
& input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index fcdd019df8b..04b089aa666 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -194,7 +194,7 @@ $time_column_min_width: 42px; /* + padding */
grid-area: edited;
}
- .message_time {
+ .message-time {
justify-self: end;
padding-right: 5px;
/* Maintain first-line baseline regardless of
@@ -419,7 +419,7 @@ $time_column_min_width: 42px; /* + padding */
grid-area: message;
}
- .message_time {
+ .message-time {
grid-area: time;
/* Don't adjust the line-height for collapsed or
edited/source messages when there's a sender,
@@ -476,9 +476,9 @@ $time_column_min_width: 42px; /* + padding */
}
/* Locally echoed messages. */
- &.locally-echoed .message_time {
+ &.locally-echoed .message-time {
opacity: 0;
- /* Don't show pointer when message_time doesn't has a link. */
+ /* Don't show pointer when message-time doesn't have a link. */
cursor: default;
}
diff --git a/web/styles/print.css b/web/styles/print.css
index a26b83effe4..c8313ea6150 100644
--- a/web/styles/print.css
+++ b/web/styles/print.css
@@ -63,7 +63,7 @@
.messagebox-content {
.message_edit_notice,
- .message_time {
+ .message-time {
/* Firefox seems to have a bug that fuzzes out
small text with opacity; this unsets that
value, and replaces with a matching gray. */
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 13c024b4aa9..05ebd7816e0 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -888,7 +888,7 @@ td.pointer {
transition: all 3s ease-in-out;
}
-.messagebox-content .message_time {
+.messagebox-content .message-time {
display: block;
font-size: 13px;
font-weight: 350;
diff --git a/web/templates/message_body.hbs b/web/templates/message_body.hbs
index 53d281004a0..2de90b701c1 100644
--- a/web/templates/message_body.hbs
+++ b/web/templates/message_body.hbs
@@ -26,7 +26,7 @@
{{/if}}
</span>
-<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message_time">
+<a {{#unless msg/locally_echoed}}href="{{ msg/url }}"{{/unless}} class="message-time">
{{#unless include_sender}}
<span class="copy-paste-text">&nbsp;</span>
{{/unless}}