From 9ba17db6f9f75ed8c386e5615213ae74f16594df Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sun, 20 Mar 2022 20:45:37 -0700 Subject: [PATCH] client: improve responsiveness --- client/components/document/index.tsx | 1 + client/components/post-list/list-item.tsx | 10 +++---- client/components/preview/preview.module.css | 2 -- .../preview/react-markdown-preview.tsx | 2 +- client/pages/post/[id].tsx | 9 ++++--- client/pages/post/styles.module.css | 26 ++++++++++++++----- 6 files changed, 32 insertions(+), 18 deletions(-) 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 && 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); + } +}