mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style(reply modal): adjust error/alert red box, add translation
This commit is contained in:
@@ -150,7 +150,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
||||
const offlineAlert = updatedAt
|
||||
? isBoardOffline && (
|
||||
<div className={styles.offlineBoard}>
|
||||
<Trans i18nKey='posts_last_synced_info' values={{ time: getFormattedTimeAgo(updatedAt) }} />
|
||||
{t('warning')}: <Trans i18nKey='posts_last_synced_info' values={{ time: getFormattedTimeAgo(updatedAt) }} />
|
||||
</div>
|
||||
)
|
||||
: t('subplebbit_offline_info');
|
||||
@@ -291,8 +291,6 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
||||
<div className={styles.content}>
|
||||
<textarea cols={48} rows={4} wrap='soft' ref={textRef} spellCheck={true} onInput={handleContentInput} onChange={handleContentChange} />
|
||||
</div>
|
||||
{!(isInAllView || isInSubscriptionsView) && offlineAlert}
|
||||
<div className={styles.offlineAlert}></div>
|
||||
<div className={styles.footer}>
|
||||
{url && !isAndroid && (
|
||||
<>
|
||||
@@ -328,6 +326,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
||||
{t('error')}: {error}
|
||||
</div>
|
||||
)}
|
||||
{!(isInAllView || isInSubscriptionsView) && offlineAlert}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user