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:
Tommaso Casaburi
2026-05-21 19:34:50 +07:00
parent 73503eadd0
commit 4efa668fec
+15 -15
View File
@@ -316,21 +316,6 @@ const PostFormFields = ({
</td>
</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)) && (
<tr className={styles.spoilerButton}>
<td>{t('options')}</td>
@@ -377,6 +362,21 @@ const PostFormFields = ({
</td>
</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>
</>
);