mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update mobile views
This commit is contained in:
@@ -42,9 +42,17 @@ const PostForm = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.postFormButtonMobile}>
|
<div className={styles.postFormButtonMobile}>
|
||||||
<button className='button' onClick={() => setShowForm(!showForm)}>
|
{isThreadClosed ? (
|
||||||
{showForm ? t('close_post_form') : isInPostPage ? t('post_a_reply') : t('start_new_thread')}
|
<div className={styles.closed}>
|
||||||
</button>
|
Thread closed.
|
||||||
|
<br />
|
||||||
|
You may not reply at this time.
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<button className='button' onClick={() => setShowForm(true)}>
|
||||||
|
{isInPostPage ? t('post_a_reply') : t('start_new_thread')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ const PostMobile = ({ post, roles, showAllReplies }: PostProps) => {
|
|||||||
{replyCount > 0 && `${replyCount} Replies`}
|
{replyCount > 0 && `${replyCount} Replies`}
|
||||||
{linkCount > 0 && ` / ${linkCount} Links`}
|
{linkCount > 0 && ` / ${linkCount} Links`}
|
||||||
</span>
|
</span>
|
||||||
<Link to={`/p/${subplebbitAddress}/c/${cid}`} className='button'>
|
<Link to={`/p/${subplebbitAddress}/${isDescription ? 'description' : isRules ? 'rules' : `c/${cid}`}`} className='button'>
|
||||||
{t('view_thread')}
|
{t('view_thread')}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user