mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post): remove margin to fix virtuoso glitch on desktop
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
padding: 0.5em 0; /* instead of using margin, wrap with padding */
|
padding: 0.5em 0; /* instead of using margin, wrap with padding */
|
||||||
}
|
}
|
||||||
|
|
||||||
.threadHideButtonWrapper {
|
.hideButtonWrapper {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.postDesktop .threadHideButton {
|
.postDesktop .hideButton {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* clearfix to the container of the floatied elements to contain them */
|
/* clearfix to the container of the floatied elements to contain them */
|
||||||
@@ -155,9 +156,17 @@
|
|||||||
|
|
||||||
.postDesktop .summary {
|
.postDesktop .summary {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
padding-left: 23px;
|
||||||
|
position: relative;
|
||||||
color: var(--post-mobile-abbr-text-color);
|
color: var(--post-mobile-abbr-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.postDesktop .summary .expandButtonWrapper {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.postDesktop .summary .expandButton {
|
.postDesktop .summary .expandButton {
|
||||||
background-image: var(--post-replies-expand-button-background-image);
|
background-image: var(--post-replies-expand-button-background-image);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@@ -166,7 +175,6 @@
|
|||||||
height: 18px;
|
height: 18px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
margin: 0 3px -4px 2px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ const PostDesktop = ({ post, showAllReplies }: { post: Comment; showAllReplies:
|
|||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
{!isInPostPage && (
|
{!isInPostPage && (
|
||||||
<span className={styles.threadHideButtonWrapper}>
|
<span className={styles.hideButtonWrapper}>
|
||||||
<span className={`${styles.threadHideButton} ${styles.hideThread}`} />
|
<span className={`${styles.hideButton} ${styles.hideThread}`} />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{commentMediaInfo?.url && (
|
{commentMediaInfo?.url && (
|
||||||
@@ -213,7 +213,9 @@ const PostDesktop = ({ post, showAllReplies }: { post: Comment; showAllReplies:
|
|||||||
)}
|
)}
|
||||||
{(replies.length > 5 || pinned) && !isInPostPage && (
|
{(replies.length > 5 || pinned) && !isInPostPage && (
|
||||||
<span className={styles.summary}>
|
<span className={styles.summary}>
|
||||||
<span className={styles.expandButton} />
|
<span className={styles.expandButtonWrapper}>
|
||||||
|
<span className={styles.expandButton} />
|
||||||
|
</span>
|
||||||
<span>
|
<span>
|
||||||
{repliesCount} replies {linkCount > 0 && `and ${linkCount} links`} omitted.{' '}
|
{repliesCount} replies {linkCount > 0 && `and ${linkCount} links`} omitted.{' '}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user