diff --git a/app/theme/client/imports/general/base_old.css b/app/theme/client/imports/general/base_old.css index b659b89c135a..c20c5c15b7a0 100644 --- a/app/theme/client/imports/general/base_old.css +++ b/app/theme/client/imports/general/base_old.css @@ -2766,9 +2766,10 @@ rc-old select, margin-right: 5px; font-family: inherit; - font-size: inherit; + font-size: 0.875rem; font-weight: 600; + line-height: inherit; } & .thumb { @@ -2802,24 +2803,30 @@ rc-old select, } } - & .info { - font-size: 12px; + & .title { + display: flex; + flex-direction: row; + + font-size: 0.75rem; + + line-height: 1.25rem; + align-items: center; & .edited { margin-left: 3px; - padding-left: 3px; - - border-left: 1px dotted; } & .is-bot, & .role-tag { + margin: 0 3px; padding: 1px 4px; border-width: 1px; border-radius: var(--border-radius); background: #ffffff; + + line-height: initial; } } @@ -2841,13 +2848,14 @@ rc-old select, display: none; } - & .info { + & .title { position: absolute; left: 5px; width: 60px; text-align: right; + justify-content: flex-end; & .time, & .role-tag, @@ -3008,6 +3016,51 @@ rc-old select, display: none; } } + + &.collapsed { + min-height: 25px; + padding: 2px 50px 2px 70px; + + font-size: 12px; + + & > .thumb { + top: 3px; + + width: 20px; + height: 20px; + margin-left: 16px; + + & .avatar { + width: 100%; + height: 100%; + } + } + + & .user { + font-size: 0.75rem; + font-weight: initial; + } + + & .body, + & .message-oembed, + & .attachment, + & .reactions, + & .edited, + & .role-tag, + &:hover .message-actions { + display: none; + } + + &.system { + & .title { + display: inline-flex; + } + + & .body { + display: inline-flex; + } + } + } } .rc-old .image-labels { @@ -3079,7 +3132,7 @@ rc-old select, } } - & .info { + & .title { & .avatar-image { border-radius: 2px; } @@ -3094,6 +3147,7 @@ rc-old select, width: 20px; height: 20px; + margin-left: 0; & .avatar { width: 20px; @@ -3107,11 +3161,14 @@ rc-old select, display: inline-block; } - & .info { + & .title { position: relative; left: 0; - text-align: right; + width: auto; + + text-align: left; + justify-content: initial; & .time, & .edited { diff --git a/app/theme/client/imports/general/rtl.css b/app/theme/client/imports/general/rtl.css index c199f52eab25..79c030fd92bd 100644 --- a/app/theme/client/imports/general/rtl.css +++ b/app/theme/client/imports/general/rtl.css @@ -54,6 +54,16 @@ right: 50%; left: auto; } + + &.compact { + & .message { + padding: 5px 45px 0 15px; + + &.collapsed .thumb { + margin: 0; + } + } + } } & .terminal { @@ -390,14 +400,9 @@ left: auto; } - & .info .edited { + & .title .edited { margin-right: 3px; margin-left: auto; - padding-right: 3px; - padding-left: auto; - - border-right: 1px dotted #bab8d8; - border-left: unset; } & .private { @@ -408,7 +413,7 @@ &.sequential { padding-top: 4px; - & .info { + & .title { right: 5px; left: auto; @@ -431,6 +436,12 @@ } } } + + &.collapsed { + & > .thumb { + margin: 0 16px 0 0; + } + } } & blockquote { diff --git a/app/threads/client/threads.css b/app/threads/client/threads.css index ce6dfb076a6a..e7a5be52906b 100644 --- a/app/threads/client/threads.css +++ b/app/threads/client/threads.css @@ -25,32 +25,80 @@ flex-shrink: 1; } -.thread-replied { - overflow: hidden; +.message { + & .thread-replied { - white-space: nowrap; - text-overflow: ellipsis; + display: inline-flex; + overflow: hidden; - color: var(--color-gray); + margin-left: 3px; - font-size: 14px; + cursor: pointer; + + white-space: nowrap; + text-overflow: ellipsis; + + color: var(--rc-color-link-active); + + align-items: baseline; + flex-flow: row nowrap; + + & .rc-icon { + position: relative; + bottom: -0.15rem; + + min-width: 18px; + } + + & .thread-quote { + overflow: hidden; + + max-width: 200px; + + white-space: nowrap; + text-overflow: ellipsis; + } + + & .thread-reply-preview { + display: none; + overflow: hidden; + + white-space: nowrap; + text-overflow: ellipsis; + } + } + + &.collapsed .thread-reply-preview { + display: initial; + } } -.message.sequential > .body > .thread-replied { - display: none; +.compact .message.collapsed { + & .thread-replied { + & .thread-reply-switch, + & .thread-reply-preview { + display: none; + } + } } -.thread-quote { - cursor: pointer; +@media (width < 500px) { + .message { + & .title { + flex-wrap: wrap; + } - color: var(--rc-color-link-active); + & .thread-replied { + flex-basis: 100%; + } + } +} + +.message.sequential > .body > .thread-replied { + display: none; } .contextual-bar__content.thread, .contextual-bar__content.threads { padding: 0; } - -.js-open-thread { - cursor: pointer; -} diff --git a/app/ui-message/client/message.html b/app/ui-message/client/message.html index da32cc24061c..2f29c2fc0dae 100644 --- a/app/ui-message/client/message.html +++ b/app/ui-message/client/message.html @@ -1,5 +1,5 @@