fix: link type in post form should be next to link field

This commit is contained in:
Tom (plebeius.eth)
2024-06-11 21:09:48 +02:00
parent 8e5a5919fa
commit a048887a58
2 changed files with 4 additions and 8 deletions
@@ -91,9 +91,8 @@
font-weight: normal;
}
.linkType td {
height: 20px;
padding-left: 2px;
.linkField input[type="text"] {
width: 190px !important;
}
.spoilerButton input[type="checkbox"] {
+2 -5
View File
@@ -202,7 +202,7 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => {
</tr>
<tr>
<td>{t('link')}</td>
<td>
<td className={styles.linkField}>
<input
type='text'
autoCorrect='off'
@@ -214,12 +214,9 @@ const PostFormTable = ({ closeForm }: { closeForm: () => void }) => {
isInPostView ? setContent.link(e.target.value) : setSubmitStore({ link: e.target.value });
}}
/>
<span className={styles.linkType}> {url && <LinkTypePreviewer link={url} />}</span>
</td>
</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}>
<td>{t('options')}</td>
<td>