mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +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>
|
</:trigger>
|
||||||
<:content>
|
<:content>
|
||||||
{{emoji @status.emoji skipTitle=true}}
|
{{emoji @status.emoji skipTitle=true}}
|
||||||
<span class="user-status-tooltip-description">
|
<div class="user-status-tooltip-wrapper">
|
||||||
{{@status.description}}
|
<span class="user-status-tooltip-description">
|
||||||
</span>
|
{{@status.description}}
|
||||||
{{#if this.until}}
|
</span>
|
||||||
<div class="user-status-tooltip-until">
|
{{#if this.until}}
|
||||||
{{this.until}}
|
<span class="user-status-tooltip-until">
|
||||||
</div>
|
{{this.until}}
|
||||||
{{/if}}
|
</span>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</:content>
|
</:content>
|
||||||
</DTooltip>
|
</DTooltip>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
[data-content][data-identifier="user-status-message-tooltip"] {
|
[data-content][data-identifier="user-status-message-tooltip"] {
|
||||||
|
.fk-d-tooltip__inner-content {
|
||||||
|
gap: 0.65em;
|
||||||
|
}
|
||||||
|
|
||||||
.emoji {
|
.emoji {
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
@ -9,14 +13,9 @@
|
|||||||
color: var(--primary-800);
|
color: var(--primary-800);
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-status-tooltip-description {
|
|
||||||
font-weight: bold;
|
|
||||||
margin-left: 0.25rem;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user-status-tooltip-until {
|
.user-status-tooltip-until {
|
||||||
color: var(--primary-medium);
|
color: var(--primary-medium);
|
||||||
padding-left: 0.25rem;
|
white-space: nowrap;
|
||||||
|
margin-left: 0.15em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user