From 8e511e7cc923d60733f7dcc9568b76389dc71db8 Mon Sep 17 00:00:00 2001 From: jahooma Date: Wed, 26 Jan 2022 12:02:53 -0600 Subject: [PATCH] Add about to top of fold page on mobile. Layout tweaks --- web/components/edit-fold-button.tsx | 6 +- web/pages/fold/[...slugs]/index.tsx | 158 +++++++++++++++------------- 2 files changed, 85 insertions(+), 79 deletions(-) diff --git a/web/components/edit-fold-button.tsx b/web/components/edit-fold-button.tsx index 3ac2504d..2176e165 100644 --- a/web/components/edit-fold-button.tsx +++ b/web/components/edit-fold-button.tsx @@ -10,8 +10,8 @@ import { toCamelCase } from '../lib/util/format' import { Spacer } from './layout/spacer' import { TagsList } from './tags-list' -export function EditFoldButton(props: { fold: Fold }) { - const { fold } = props +export function EditFoldButton(props: { fold: Fold; className?: string }) { + const { fold, className } = props const [name, setName] = useState(fold.name) const [about, setAbout] = useState(fold.about ?? '') @@ -41,7 +41,7 @@ export function EditFoldButton(props: { fold: Fold }) { } return ( -
+