diff --git a/client/components/document/index.tsx b/client/components/document/index.tsx
index 4b1a08ff..a1040541 100644
--- a/client/components/document/index.tsx
+++ b/client/components/document/index.tsx
@@ -114,6 +114,7 @@ const Document = ({ remove, editable, title, content, setTitle, setContent, init
label="Filename"
disabled={!editable}
width={"100%"}
+ id={title}
/>
{remove && editable && } auto height={'36px'} width={'36px'} onClick={() => removeFile(remove)} />}
diff --git a/client/components/post-list/list-item.tsx b/client/components/post-list/list-item.tsx
index 3e9e8d26..30c37ecd 100644
--- a/client/components/post-list/list-item.tsx
+++ b/client/components/post-list/list-item.tsx
@@ -30,17 +30,17 @@ const ListItem = ({ post }: { post: any }) => {
return (
-
-
-
+
+
+
{post.title}
- {time}
- {post.files.length === 1 ? "1 file" : `${post.files.length} files`}
+ {time}
+ {post.files.length === 1 ? "1 file" : `${post.files.length} files`}
diff --git a/client/components/preview/preview.module.css b/client/components/preview/preview.module.css
index 6250035c..bfd181da 100644
--- a/client/components/preview/preview.module.css
+++ b/client/components/preview/preview.module.css
@@ -87,8 +87,6 @@
border-radius: 3px;
white-space: pre-wrap;
word-wrap: break-word;
- color: initial;
- background-color: #f5f5f5;
padding: 2px 4px;
}
diff --git a/client/components/preview/react-markdown-preview.tsx b/client/components/preview/react-markdown-preview.tsx
index fc4e6416..92d9963d 100644
--- a/client/components/preview/react-markdown-preview.tsx
+++ b/client/components/preview/react-markdown-preview.tsx
@@ -36,7 +36,7 @@ const ReactMarkdownPreview = ({ content, height }: Props) => {
background: 'transparent'
}}
codeTagProps={{
- style: { background: 'transparent' }
+ style: { background: 'transparent', color: 'inherit' }
}}
style={themeType === 'dark' ? dark : light}
showLineNumbers={true}
diff --git a/client/pages/post/[id].tsx b/client/pages/post/[id].tsx
index 115b69fb..0bd32738 100644
--- a/client/pages/post/[id].tsx
+++ b/client/pages/post/[id].tsx
@@ -8,7 +8,6 @@ import Header from "../../components/header";
import VisibilityBadge from "../../components/visibility-badge";
import { ThemeProps } from "../_app";
import PageSeo from "components/page-seo";
-import Head from "next/head";
import styles from './styles.module.css';
import Cookies from "js-cookie";
@@ -80,14 +79,18 @@ const Post = ({ theme, changeTheme }: ThemeProps) => {
+ {/* {!isLoading && } */}
+
{error && {error}}
- {/* {!error && (isLoading || !post?.files) && } */}
{!error && isLoading && <>
>}
{!isLoading && post && <>
-
{post.title}
+
+ {post.title}
+
+
diff --git a/client/pages/post/styles.module.css b/client/pages/post/styles.module.css
index 5bcfe224..9691f87f 100644
--- a/client/pages/post/styles.module.css
+++ b/client/pages/post/styles.module.css
@@ -1,11 +1,23 @@
.header {
- display: flex;
- justify-content: space-between;
- align-items: center;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.header .titleAndBadge {
+ display: flex;
+ text-align: center;
+ justify-content: space-between;
+ align-items: center;
}
@media screen and (max-width: 650px) {
- .header {
- flex-direction: column;
- }
-}
\ No newline at end of file
+ .header {
+ flex-direction: column;
+ }
+
+ .header .titleAndBadge {
+ flex-direction: column;
+ padding-bottom: var(--gap-double);
+ }
+}