From ae996e884719fdfaa7dc1c009d16aeaff4d42fc9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 25 Mar 2026 20:07:37 +0200 Subject: [PATCH] feat(standalone/setup): dedicated back button --- apps/client/src/setup.css | 17 ++++++++++++++--- apps/client/src/setup.tsx | 27 +++++++++++++++++---------- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/apps/client/src/setup.css b/apps/client/src/setup.css index 35f8fdbe7e..c602ee2e2b 100644 --- a/apps/client/src/setup.css +++ b/apps/client/src/setup.css @@ -86,6 +86,17 @@ body.setup { height: 100%; padding: 2em; + >.back-button { + position: absolute; + top: 2em; + left: 2em; + color: var(--muted-text-color); + + .tn-icon { + margin-right: 0.4em; + } + } + >main { flex: 1; display: flex; @@ -132,11 +143,9 @@ body.setup { form { display: flex; flex-direction: column; - justify-content: center; - flex-grow: 1; gap: 1rem; width: 80%; - margin: auto; + margin-inline: auto; .form-group { margin-bottom: 0; @@ -195,6 +204,7 @@ body.setup { .sync-illustration { display: flex; justify-content: center; + margin-top: 1.5em; margin-bottom: 1.5rem; .tn-icon { @@ -244,6 +254,7 @@ body.setup { h1 + p { text-align: center; color: var(--muted-text-color); + margin-bottom: 0; } .tooltip { diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx index e776f4c7ca..38aa58d986 100644 --- a/apps/client/src/setup.tsx +++ b/apps/client/src/setup.tsx @@ -212,6 +212,7 @@ function CreateNewDocumentOptions({ setState }: { setState: (state: State) => vo className="create-new-document-options" title={t("setup.create-new-document-options-title")} illustration={} + onBack={() => setState("firstOptions")} >
setState("createNewDocumentWithDemo")} /> @@ -274,16 +275,14 @@ function SyncFromServer({ setState }: { setState: (state: State) => void }) { return ( } error={error} errorId={errorId} - footer={<> -