mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fixed quote scroll to start of match
This commit is contained in:
@@ -384,7 +384,7 @@ const Board = () => {
|
||||
<Fragment key={`fr-${thread.cid}`}>
|
||||
<div key={`t-${thread.cid}`} className="thread">
|
||||
<div key={`c-${thread.cid}`} className="op-container">
|
||||
<div key={`po-${thread.cid}`} className="post op">
|
||||
<div key={`po-${thread.cid}`} className="post op op-desktop">
|
||||
<hr key={`hr-${thread.cid}`} />
|
||||
<div key={`pi-${thread.cid}`} className="post-info">
|
||||
{commentMediaInfo?.url ? (
|
||||
@@ -650,7 +650,7 @@ const Board = () => {
|
||||
<div key={`mob-t-${thread.cid}`} className="thread-mobile">
|
||||
<hr key={`mob-hr-${thread.cid}`} />
|
||||
<div key={`mob-c-${thread.cid}`} className="op-container">
|
||||
<div key={`mob-po-${thread.cid}`} className="post op">
|
||||
<div key={`mob-po-${thread.cid}`} className="post op op-mobile">
|
||||
<div key={`mob-pi-${thread.cid}`} className="post-info-mobile">
|
||||
<button key={`mob-pb-${thread.cid}`} className="post-menu-button-mobile" onClick={() => {}} style={{ all: 'unset', cursor: 'pointer' }}>...</button>
|
||||
<span key={`mob-nbm-${thread.cid}`} className="name-block-mobile">
|
||||
|
||||
@@ -402,7 +402,7 @@ const Thread = () => {
|
||||
<>
|
||||
<div className="thread">
|
||||
<div className="op-container">
|
||||
<div className="post op">
|
||||
<div className="post op op-desktop">
|
||||
<div className="post-info">
|
||||
{commentMediaInfo?.url ? (
|
||||
<div key={`f-${comment.cid}`} className="file" style={{marginBottom: "5px"}}>
|
||||
@@ -616,9 +616,6 @@ const Thread = () => {
|
||||
<Link to={() => {}} className="quote-link"
|
||||
onClick={(event) => {
|
||||
handleQuoteClick(reply, shortParentCid, comment.shortCid, event);
|
||||
if (shortParentCid === comment.shortCid) {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
}}
|
||||
>
|
||||
{`c/${shortParentCid}`}{shortParentCid === comment.shortCid ? " (OP)" : null}
|
||||
@@ -634,7 +631,7 @@ const Thread = () => {
|
||||
<div className="thread-mobile" key="thread-mobile">
|
||||
<hr />
|
||||
<div className="op-container" key="op-container">
|
||||
<div key={`mob-po-${comment.cid}`} className="post op">
|
||||
<div key={`mob-po-${comment.cid}`} className="post op op-mobile">
|
||||
<div key={`mob-pi-${comment.cid}`} className="post-info-mobile">
|
||||
<button style={{ all: 'unset', cursor: 'pointer' }} key={`mob-pb-${comment.cid}`} className="post-menu-button-mobile" onClick={() => {}}>...</button>
|
||||
<span className="name-block-mobile">
|
||||
|
||||
Reference in New Issue
Block a user