Skip to content

Commit

Permalink
fix(regression): improve discussion list item styling extensibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 23, 2024
1 parent 464b67f commit aca66cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
21 changes: 15 additions & 6 deletions framework/core/less/forum/DiscussionListItem.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,24 @@
.DiscussionListItem-content {
position: relative;
color: var(--muted-color);
display: grid;
grid-template-columns: auto minmax(50%, 1fr) auto;
display: flex;
gap: 16px;
padding: 12px 26px 12px 0;

> * {
flex-grow: 0;
flex-shrink: 0;
}
}
.DiscussionListItem-main {
color: inherit;
text-decoration: none;
display: block;
flex-grow: 1;
flex-shrink: 1;
}
.DiscussionListItem-author {
position: relative;
}
.DiscussionListItem-author-avatar {
display: block;
Expand All @@ -35,7 +44,7 @@
pointer-events: none;

position: absolute;
top: 0;
top: -14px;
left: -2px;
}
.DiscussionListItem-title {
Expand Down Expand Up @@ -167,9 +176,9 @@
}
}
.DiscussionListItem-badges {
width: 38px;
left: 19px;
top: -4px;
width: 48px;
left: -4px;
top: -15px;

.badge {
.Badge--size(20px);
Expand Down
3 changes: 0 additions & 3 deletions framework/core/less/forum/DiscussionListPane.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
overflow: hidden;
text-overflow: ellipsis;
}
.DiscussionListItem-badges {
left: 12px;
}
}
}

Expand Down

0 comments on commit aca66cb

Please sign in to comment.