mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(post form): move rules and FAQ prompt to bottom of form
Render the rules/FAQ prompt after the last field instead of between the file and options rows so it always sits at the bottom.
This commit is contained in:
@@ -316,21 +316,6 @@ const PostFormFields = ({
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)}
|
)}
|
||||||
<tr className='rules'>
|
|
||||||
<td colSpan={2}>
|
|
||||||
<ul className='rules'>
|
|
||||||
<li>
|
|
||||||
<Trans
|
|
||||||
i18nKey='post_form_rules_faq_prompt'
|
|
||||||
components={{
|
|
||||||
rules: <Link to={rulesPath} />,
|
|
||||||
faq: <Link to='/faq' />,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{((isInPostView && showSpoilerForReply) || (!isInPostView && showSpoilerForPost)) && (
|
{((isInPostView && showSpoilerForReply) || (!isInPostView && showSpoilerForPost)) && (
|
||||||
<tr className={styles.spoilerButton}>
|
<tr className={styles.spoilerButton}>
|
||||||
<td>{t('options')}</td>
|
<td>{t('options')}</td>
|
||||||
@@ -377,6 +362,21 @@ const PostFormFields = ({
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)}
|
)}
|
||||||
|
<tr className='rules'>
|
||||||
|
<td colSpan={2}>
|
||||||
|
<ul className='rules'>
|
||||||
|
<li>
|
||||||
|
<Trans
|
||||||
|
i18nKey='post_form_rules_faq_prompt'
|
||||||
|
components={{
|
||||||
|
rules: <Link to={rulesPath} />,
|
||||||
|
faq: <Link to='/faq' />,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user