mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: link type in post form should be next to link field
This commit is contained in:
@@ -91,9 +91,8 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.linkType td {
|
.linkField input[type="text"] {
|
||||||
height: 20px;
|
width: 190px !important;
|
||||||
padding-left: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.spoilerButton input[type="checkbox"] {
|
.spoilerButton input[type="checkbox"] {
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{t('link')}</td>
|
<td>{t('link')}</td>
|
||||||
<td>
|
<td className={styles.linkField}>
|
||||||
<input
|
<input
|
||||||
type='text'
|
type='text'
|
||||||
autoCorrect='off'
|
autoCorrect='off'
|
||||||
@@ -214,12 +214,9 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => {
|
|||||||
isInPostView ? setContent.link(e.target.value) : setSubmitStore({ link: e.target.value });
|
isInPostView ? setContent.link(e.target.value) : setSubmitStore({ link: e.target.value });
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<span className={styles.linkType}> {url && <LinkTypePreviewer link={url} />}</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr className={styles.linkType}>
|
|
||||||
<td>{t('file_type')}</td>
|
|
||||||
<td>{url ? <LinkTypePreviewer link={url} /> : t('no_link_provided')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr className={styles.spoilerButton}>
|
<tr className={styles.spoilerButton}>
|
||||||
<td>{t('options')}</td>
|
<td>{t('options')}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
Reference in New Issue
Block a user