mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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", {
|
export default createWidget("post-small-action", {
|
||||||
buildKey: attrs => `post-small-act-${attrs.id}`,
|
buildKey: attrs => `post-small-act-${attrs.id}`,
|
||||||
tagName: "div.small-action.onscreen-post.clearfix",
|
tagName: "div.small-action.onscreen-post",
|
||||||
|
|
||||||
buildId(attrs) {
|
buildId(attrs) {
|
||||||
return `post_${attrs.post_number}`;
|
return `post_${attrs.post_number}`;
|
||||||
|
@ -16,7 +16,7 @@ function description(attrs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default createWidget("time-gap", {
|
export default createWidget("time-gap", {
|
||||||
tagName: "div.time-gap.small-action.clearfix",
|
tagName: "div.time-gap.small-action",
|
||||||
|
|
||||||
html(attrs) {
|
html(attrs) {
|
||||||
return [
|
return [
|
||||||
|
@ -586,7 +586,7 @@ blockquote > *:last-child {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gap {
|
.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);
|
color: dark-light-choose($primary-medium, $secondary-high);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -628,6 +628,7 @@ blockquote > *:last-child {
|
|||||||
padding: 0.7em 0;
|
padding: 0.7em 0;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
margin-right: 11px;
|
margin-right: 11px;
|
||||||
|
flex: 0 0 auto;
|
||||||
.d-icon {
|
.d-icon {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
width: 45px;
|
width: 45px;
|
||||||
|
Loading…
Reference in New Issue
Block a user