mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 11:42:14 +08:00
UX: improve the alignment of long status messages (#30830)
Before:  After:  Short message layout stays mostly unchanged: 
This commit is contained in:
@ -36,14 +36,16 @@ export default class UserStatusMessage extends Component {
|
||||
</:trigger>
|
||||
<:content>
|
||||
{{emoji @status.emoji skipTitle=true}}
|
||||
<span class="user-status-tooltip-description">
|
||||
{{@status.description}}
|
||||
</span>
|
||||
{{#if this.until}}
|
||||
<div class="user-status-tooltip-until">
|
||||
{{this.until}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="user-status-tooltip-wrapper">
|
||||
<span class="user-status-tooltip-description">
|
||||
{{@status.description}}
|
||||
</span>
|
||||
{{#if this.until}}
|
||||
<span class="user-status-tooltip-until">
|
||||
{{this.until}}
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</:content>
|
||||
</DTooltip>
|
||||
{{/if}}
|
||||
|
@ -1,4 +1,8 @@
|
||||
[data-content][data-identifier="user-status-message-tooltip"] {
|
||||
.fk-d-tooltip__inner-content {
|
||||
gap: 0.65em;
|
||||
}
|
||||
|
||||
.emoji {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
@ -9,14 +13,9 @@
|
||||
color: var(--primary-800);
|
||||
}
|
||||
|
||||
.user-status-tooltip-description {
|
||||
font-weight: bold;
|
||||
margin-left: 0.25rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.user-status-tooltip-until {
|
||||
color: var(--primary-medium);
|
||||
padding-left: 0.25rem;
|
||||
white-space: nowrap;
|
||||
margin-left: 0.15em;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user