mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
UX: Tweak user deleted posts items (#21856)
This commit is contained in:
parent
d4bfd441ba
commit
475ac297a4
@ -28,20 +28,23 @@
|
||||
{{else}}
|
||||
<ExpandPost @item={{@item}} />
|
||||
{{/if}}
|
||||
<span class="time">{{format-date @item.created_at}}</span>
|
||||
|
||||
{{#if @item.deleted_by}}
|
||||
<span class="delete-info">
|
||||
{{d-icon "far-trash-alt"}}
|
||||
{{avatar
|
||||
@item.deleted_by
|
||||
imageSize="tiny"
|
||||
extraClasses="actor"
|
||||
ignoreTitle="true"
|
||||
}}
|
||||
{{format-date @item.deleted_at leaveAgo="true"}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<div class="user-stream-item__metadata">
|
||||
<span class="time">{{format-date @item.created_at}}</span>
|
||||
|
||||
{{#if @item.deleted_by}}
|
||||
<span class="delete-info">
|
||||
{{d-icon "far-trash-alt"}}
|
||||
{{avatar
|
||||
@item.deleted_by
|
||||
imageSize="tiny"
|
||||
extraClasses="actor"
|
||||
ignoreTitle="true"
|
||||
}}
|
||||
{{format-date @item.deleted_at leaveAgo="true"}}
|
||||
</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<span>
|
||||
<PluginOutlet
|
||||
|
@ -35,6 +35,12 @@
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.user-stream-item__metadata {
|
||||
align-items: end;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.type,
|
||||
span.name {
|
||||
color: var(--primary);
|
||||
@ -49,15 +55,25 @@
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.delete-info {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
.d-icon {
|
||||
font-size: var(--font-0);
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.notification .time {
|
||||
margin-left: auto;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.delete-info .d-icon {
|
||||
font-size: var(--font-0);
|
||||
}
|
||||
|
||||
.expand-item,
|
||||
.collapse-item {
|
||||
margin-right: 0.5em;
|
||||
|
@ -1,11 +1,5 @@
|
||||
// Desktop styles for "user-stream-item" component
|
||||
.user-stream {
|
||||
.time,
|
||||
.delete-info,
|
||||
.draft-type {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.notification {
|
||||
&.unread {
|
||||
background-color: var(--tertiary-low);
|
||||
|
Loading…
Reference in New Issue
Block a user