diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index a518f3d0..926dd15e 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -88,9 +88,9 @@ .postDesktop .postMessage { padding: 1em 40px; } - +/* @media (max-width: 640px) { .postDesktop { display: none; } -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/src/views/settings/settings.module.css b/src/views/settings/settings.module.css index 481add9d..322ce10f 100644 --- a/src/views/settings/settings.module.css +++ b/src/views/settings/settings.module.css @@ -5,6 +5,10 @@ transform: translate(-50%, -50%); } +.version { + display: block; +} + .content select { background-color: var(--select-background-color, revert); border: var(--select-border, revert); diff --git a/src/views/settings/settings.tsx b/src/views/settings/settings.tsx index c3d1b953..0e7beca8 100644 --- a/src/views/settings/settings.tsx +++ b/src/views/settings/settings.tsx @@ -2,6 +2,9 @@ import { useTranslation } from 'react-i18next'; import useTheme from '../../hooks/use-theme'; import styles from './settings.module.css'; import { Link } from 'react-router-dom'; +import packageJson from '../../../package.json'; +const isElectron = window.isElectron === true; +const commitRef = process.env.REACT_APP_COMMIT_REF; // TODO: remove theme and languages selectors for debugging const ThemeSettings = () => { @@ -46,6 +49,26 @@ const LanguageSettings = () => { const Settings = () => { return (
+
+ + v{packageJson.version} + + {isElectron && ( + + node stats + + )} + {commitRef && ( + <> + {' '} + ( + + {commitRef.slice(0, 7)} + + ) + + )} +
Home