UX: Tweak user deleted posts items (#21856)

This commit is contained in:
Jarek Radosz 2023-05-31 16:49:56 +02:00 committed by GitHub
parent d4bfd441ba
commit 475ac297a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 23 deletions

View File

@ -28,20 +28,23 @@
{{else}} {{else}}
<ExpandPost @item={{@item}} /> <ExpandPost @item={{@item}} />
{{/if}} {{/if}}
<span class="time">{{format-date @item.created_at}}</span>
{{#if @item.deleted_by}} <div class="user-stream-item__metadata">
<span class="delete-info"> <span class="time">{{format-date @item.created_at}}</span>
{{d-icon "far-trash-alt"}}
{{avatar {{#if @item.deleted_by}}
@item.deleted_by <span class="delete-info">
imageSize="tiny" {{d-icon "far-trash-alt"}}
extraClasses="actor" {{avatar
ignoreTitle="true" @item.deleted_by
}} imageSize="tiny"
{{format-date @item.deleted_at leaveAgo="true"}} extraClasses="actor"
</span> ignoreTitle="true"
{{/if}} }}
{{format-date @item.deleted_at leaveAgo="true"}}
</span>
{{/if}}
</div>
<span> <span>
<PluginOutlet <PluginOutlet

View File

@ -35,6 +35,12 @@
flex-grow: 1; flex-grow: 1;
} }
.user-stream-item__metadata {
align-items: end;
display: flex;
flex-direction: column;
}
.type, .type,
span.name { span.name {
color: var(--primary); color: var(--primary);
@ -49,15 +55,25 @@
padding-top: 5px; 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 { .notification .time {
margin-left: auto; margin-left: auto;
float: none; float: none;
} }
.delete-info .d-icon {
font-size: var(--font-0);
}
.expand-item, .expand-item,
.collapse-item { .collapse-item {
margin-right: 0.5em; margin-right: 0.5em;

View File

@ -1,11 +1,5 @@
// Desktop styles for "user-stream-item" component // Desktop styles for "user-stream-item" component
.user-stream { .user-stream {
.time,
.delete-info,
.draft-type {
margin-right: 8px;
}
.notification { .notification {
&.unread { &.unread {
background-color: var(--tertiary-low); background-color: var(--tertiary-low);