mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix cid link default click
This commit is contained in:
@@ -460,8 +460,12 @@ const Board = () => {
|
|||||||
<span key={`pn-${thread.cid}`} className="post-number post-number-desktop">
|
<span key={`pn-${thread.cid}`} className="post-number post-number-desktop">
|
||||||
<Link to={() => {}} key={`pl1-${thread.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
<Link to={() => {}} key={`pl1-${thread.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
||||||
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`pl2-${thread.cid}`}
|
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`pl2-${thread.cid}`}
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
setIsReplyOpen(true); setSelectedShortCid(thread.shortCid); setSelectedParentCid(thread.cid);
|
if (e.button === 2) return;
|
||||||
|
e.preventDefault();
|
||||||
|
setIsReplyOpen(true);
|
||||||
|
setSelectedShortCid(thread.shortCid);
|
||||||
|
setSelectedParentCid(thread.cid);
|
||||||
}} title="Reply to this post">{thread.shortCid}</Link>
|
}} title="Reply to this post">{thread.shortCid}</Link>
|
||||||
|
|
||||||
<span key={`rl1-${thread.cid}`}>
|
<span key={`rl1-${thread.cid}`}>
|
||||||
@@ -554,8 +558,12 @@ const Board = () => {
|
|||||||
<span key={`pn-${reply.cid}`} className="post-number post-number-desktop">
|
<span key={`pn-${reply.cid}`} className="post-number post-number-desktop">
|
||||||
<Link to={() => {}} key={`pl1-${reply.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
<Link to={() => {}} key={`pl1-${reply.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
||||||
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`pl2-${reply.cid}`}
|
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`pl2-${reply.cid}`}
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
setIsReplyOpen(true); setSelectedShortCid(reply.shortCid); setSelectedParentCid(reply.cid);
|
if (e.button === 2) return;
|
||||||
|
e.preventDefault();
|
||||||
|
setIsReplyOpen(true);
|
||||||
|
setSelectedShortCid(reply.shortCid);
|
||||||
|
setSelectedParentCid(reply.cid);
|
||||||
}} title="Reply to this post">{reply.shortCid}</Link>
|
}} title="Reply to this post">{reply.shortCid}</Link>
|
||||||
</span>
|
</span>
|
||||||
<button key={`pmb-${reply.cid}`} className="post-menu-button" onClick={() => {}} title="Post menu" style={{ all: 'unset', cursor: 'pointer' }} data-cmd="post-menu">▶</button>
|
<button key={`pmb-${reply.cid}`} className="post-menu-button" onClick={() => {}} title="Post menu" style={{ all: 'unset', cursor: 'pointer' }} data-cmd="post-menu">▶</button>
|
||||||
@@ -696,9 +704,15 @@ const Board = () => {
|
|||||||
{getDate(thread.timestamp)}
|
{getDate(thread.timestamp)}
|
||||||
|
|
||||||
<Link to={() => {}} key={`mob-no-${thread.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
<Link to={() => {}} key={`mob-no-${thread.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
||||||
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`mob-no2-${thread.cid}`} onClick={() => {
|
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`mob-no2-${thread.cid}`}
|
||||||
setIsReplyOpen(true); setSelectedShortCid(thread.shortCid); setSelectedParentCid(thread.cid);
|
onClick={(e) => {
|
||||||
}} title="Reply to this post">{thread.shortCid}</Link>
|
if (e.button === 2) return;
|
||||||
|
e.preventDefault();
|
||||||
|
setIsReplyOpen(true);
|
||||||
|
setSelectedShortCid(thread.shortCid);
|
||||||
|
setSelectedParentCid(thread.cid);
|
||||||
|
}} title="Reply to this post">{thread.shortCid}
|
||||||
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{thread.link ? (
|
{thread.link ? (
|
||||||
@@ -801,9 +815,15 @@ const Board = () => {
|
|||||||
<span key={`mob-dt-${reply.cid}`} className="date-time-mobile post-number-mobile">
|
<span key={`mob-dt-${reply.cid}`} className="date-time-mobile post-number-mobile">
|
||||||
{getDate(reply.timestamp)}
|
{getDate(reply.timestamp)}
|
||||||
<Link to={() => {}} key={`mob-pl1-${reply.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
<Link to={() => {}} key={`mob-pl1-${reply.cid}`} onClick={() => {}} title="Link to this post">c/</Link>
|
||||||
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`mob-pl2-${reply.cid}`} onClick={() => {
|
<Link to={`/p/${selectedAddress}/c/${thread.cid}`} id="reply-button" key={`mob-pl2-${reply.cid}`}
|
||||||
setIsReplyOpen(true); setSelectedShortCid(reply.shortCid); setSelectedParentCid(reply.cid)
|
onClick={(e) => {
|
||||||
}} title="Reply to this post">{reply.shortCid}</Link>
|
if (e.button === 2) return;
|
||||||
|
e.preventDefault();
|
||||||
|
setIsReplyOpen(true);
|
||||||
|
setSelectedShortCid(reply.shortCid);
|
||||||
|
setSelectedParentCid(reply.cid);
|
||||||
|
}} title="Reply to this post">{reply.shortCid}
|
||||||
|
</Link>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{reply.link ? (
|
{reply.link ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user