From 1ce4b914333e9aac83a448bf09a6c0e0f209e490 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 29 Jul 2023 14:59:16 +0800 Subject: [PATCH] chore: tweak detail style --- web/src/components/Header.tsx | 6 ++--- web/src/components/ShortcutView.tsx | 3 ++- web/src/components/ShortcutsContainer.tsx | 2 -- web/src/components/ViewSetting.tsx | 6 ++--- web/src/layouts/Root.tsx | 2 +- web/src/pages/Home.tsx | 27 ++++++++++------------- web/src/pages/SignIn.tsx | 10 ++++----- web/src/pages/SignUp.tsx | 12 +++++----- web/tailwind.config.js | 2 +- 9 files changed, 33 insertions(+), 37 deletions(-) diff --git a/web/src/components/Header.tsx b/web/src/components/Header.tsx index 294a418..c354511 100644 --- a/web/src/components/Header.tsx +++ b/web/src/components/Header.tsx @@ -40,18 +40,18 @@ const Header: React.FC = () => { <> Setting + } - actionsClassName="right-10 translate-x-full" + actionsClassName="top-7 !-right-2" actions={
e.stopPropagation()}>
diff --git a/web/src/layouts/Root.tsx b/web/src/layouts/Root.tsx index d41d16d..8fd7109 100644 --- a/web/src/layouts/Root.tsx +++ b/web/src/layouts/Root.tsx @@ -18,7 +18,7 @@ const Root: React.FC = () => { return ( <> {currentUser && ( -
+
diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx index e12b570..f73fb83 100644 --- a/web/src/pages/Home.tsx +++ b/web/src/pages/Home.tsx @@ -47,26 +47,23 @@ const Home: React.FC = () => {
- } - endDecorator={ - filter.search && viewStore.setFilter({ search: "" })} /> - } - value={filter.search} - onChange={(e) => viewStore.setFilter({ search: e.target.value })} - /> - -
-
+
+ } + endDecorator={} + value={filter.search} + onChange={(e) => viewStore.setFilter({ search: e.target.value })} + /> +
{loadingState.isLoading ? ( diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx index e571d0a..eb41fc9 100644 --- a/web/src/pages/SignIn.tsx +++ b/web/src/pages/SignIn.tsx @@ -69,14 +69,14 @@ const SignIn: React.FC = () => { }; return ( -
+
-
- logo - Slash +
+ logo + Slash
-
+
Email diff --git a/web/src/pages/SignUp.tsx b/web/src/pages/SignUp.tsx index bcc0252..5f0fd9a 100644 --- a/web/src/pages/SignUp.tsx +++ b/web/src/pages/SignUp.tsx @@ -73,15 +73,15 @@ const SignUp: React.FC = () => { }; return ( -
+
-
- logo - Slash +
+ logo + Slash
-

Create your account

- +

Create your account

+
Email diff --git a/web/tailwind.config.js b/web/tailwind.config.js index c9583b5..3c5e8fa 100644 --- a/web/tailwind.config.js +++ b/web/tailwind.config.js @@ -5,7 +5,7 @@ module.exports = { fontSize: { xs: ".75rem", sm: ".875rem", - base: "1rem", + base: "0.95rem", lg: "1.125rem", xl: "1.25rem", "2xl": "1.5rem",