mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:07:53 +08:00
FIX: Alignment for small-actions, gap, removing unneeded clearfix
This commit is contained in:
parent
4ddc28f194
commit
fe6d571021
|
@ -62,7 +62,7 @@ export function addPostSmallActionIcon(key, icon) {
|
|||
|
||||
export default createWidget("post-small-action", {
|
||||
buildKey: attrs => `post-small-act-${attrs.id}`,
|
||||
tagName: "div.small-action.onscreen-post.clearfix",
|
||||
tagName: "div.small-action.onscreen-post",
|
||||
|
||||
buildId(attrs) {
|
||||
return `post_${attrs.post_number}`;
|
||||
|
|
|
@ -16,7 +16,7 @@ function description(attrs) {
|
|||
}
|
||||
|
||||
export default createWidget("time-gap", {
|
||||
tagName: "div.time-gap.small-action.clearfix",
|
||||
tagName: "div.time-gap.small-action",
|
||||
|
||||
html(attrs) {
|
||||
return [
|
||||
|
|
|
@ -586,7 +586,7 @@ blockquote > *:last-child {
|
|||
}
|
||||
|
||||
.gap {
|
||||
padding: 0.25em 0 0.5em 4.6em;
|
||||
padding: 0.25em 0 0.5em 56px; // 45px (topic avatar) + 11px (margin) = 56px
|
||||
color: dark-light-choose($primary-medium, $secondary-high);
|
||||
cursor: pointer;
|
||||
text-transform: uppercase;
|
||||
|
@ -628,6 +628,7 @@ blockquote > *:last-child {
|
|||
padding: 0.7em 0;
|
||||
border-top: none;
|
||||
margin-right: 11px;
|
||||
flex: 0 0 auto;
|
||||
.d-icon {
|
||||
font-size: 2em;
|
||||
width: 45px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user