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_feed: Fix collapsed messages for highlighted texts.

nimishd3c99682c3f3
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index f7d6564a9e7..bfaf3c8db56 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -195,6 +195,35 @@ $time_column_min_width: 50px; /* + padding */
all single paragraphs the same.
*/
padding: 2px 0;
+ color: var(--color-text-message-default);
+ line-height: var(--message-box-line-height);
+ min-height: 17px;
+ display: block;
+ position: relative;
+ overflow: hidden;
+
+ &:empty {
+ display: none;
+ }
+
+ &.condensed {
+ max-height: 8.5em;
+ min-height: 0;
+ overflow: hidden;
+ mask-image: linear-gradient(
+ to top,
+ hsl(0deg 0% 100% / 0%) 0%,
+ hsl(0deg 0% 100%) 60px
+ );
+ mask-size: cover;
+ }
+
+ &.collapsed {
+ padding: 0;
+ max-height: 0;
+ min-height: 0;
+ overflow: hidden;
+ }
}
.message_reactions {
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 9b954d3bb62..0430f088394 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1695,37 +1695,6 @@ div.focused_table {
display: block;
}
-.message_content {
- color: var(--color-text-message-default);
- line-height: var(--message-box-line-height);
- min-height: 17px;
- display: block;
- position: relative;
- overflow: hidden;
-
- &:empty {
- display: none;
- }
-
- &.condensed {
- max-height: 8.5em;
- min-height: 0;
- overflow: hidden;
- mask-image: linear-gradient(
- to top,
- hsl(0deg 0% 100% / 0%) 0%,
- hsl(0deg 0% 100%) 60px
- );
- mask-size: cover;
- }
-
- &.collapsed {
- max-height: 0;
- min-height: 0;
- overflow: hidden;
- }
-}
-
.rtl {
direction: rtl;
}