mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: color missing, translation missing
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
import { useLocation, useParams } from 'react-router-dom';
|
import { useLocation, useParams } from 'react-router-dom';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { Trans, useTranslation } from 'react-i18next';
|
||||||
import Draggable from 'react-draggable';
|
import Draggable from 'react-draggable';
|
||||||
import { setAccount, useAccount, useComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
|
import { setAccount, useAccount, useComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
|
||||||
import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js';
|
import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js';
|
||||||
@@ -127,9 +127,11 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
|
|||||||
const isBoardOffline = subplebbit?.updatedAt && subplebbit.updatedAt < Date.now() / 1000 - 60 * 60;
|
const isBoardOffline = subplebbit?.updatedAt && subplebbit.updatedAt < Date.now() / 1000 - 60 * 60;
|
||||||
const offlineAlert = updatedAt
|
const offlineAlert = updatedAt
|
||||||
? isBoardOffline && (
|
? isBoardOffline && (
|
||||||
<div className={styles.offlineBoard}>{`Posts last synced ${getFormattedTimeAgo(updatedAt)}, the subplebbit might be offline and publishing might fail.`}</div>
|
<div className={styles.offlineBoard}>
|
||||||
|
<Trans i18nKey='posts_last_synced_info' values={{ time: getFormattedTimeAgo(updatedAt) }} />
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
: `The subplebbit might be offline and publishing might fail.`;
|
: t('subplebbit_offline_info');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (showReplyModal) {
|
if (showReplyModal) {
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
padding: 15px 0 10px 5px;
|
padding: 15px 0 10px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a, .newerPostsButton {
|
||||||
text-decoration: var(--button-text-decoration);
|
text-decoration: var(--button-text-decoration);
|
||||||
color: var(--button-desktop-text-color);
|
color: var(--button-desktop-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a:hover {
|
.footer a:hover, .newerPostsButton:hover {
|
||||||
color: var(--button-desktop-text-color-hover);
|
color: var(--button-desktop-text-color-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ const Board = () => {
|
|||||||
<Trans
|
<Trans
|
||||||
i18nKey='newer_posts_available'
|
i18nKey='newer_posts_available'
|
||||||
components={{
|
components={{
|
||||||
1: <span onClick={handleNewerPostsButtonClick} />,
|
1: <span className={styles.newerPostsButton} onClick={handleNewerPostsButtonClick} />,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
color: var(--post-mobile-abbr-text-color);
|
color: var(--post-mobile-abbr-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a {
|
.footer a, .newerPostsButton {
|
||||||
text-decoration: var(--button-text-decoration);
|
text-decoration: var(--button-text-decoration);
|
||||||
color: var(--button-desktop-text-color);
|
color: var(--button-desktop-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a:hover {
|
.footer a:hover, .newerPostsButton:hover {
|
||||||
color: var(--button-desktop-text-color-hover);
|
color: var(--button-desktop-text-color-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ const Catalog = () => {
|
|||||||
<Trans
|
<Trans
|
||||||
i18nKey='newer_posts_available'
|
i18nKey='newer_posts_available'
|
||||||
components={{
|
components={{
|
||||||
1: <span onClick={handleNewerPostsButtonClick} />,
|
1: <span className={styles.newerPostsButton} onClick={handleNewerPostsButtonClick} />,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user