From fa4c825cfb096d236f47d36605e1e26fe9fb338a Mon Sep 17 00:00:00 2001 From: Pablo Klaschka Date: Sun, 4 Oct 2020 23:57:41 +0200 Subject: [PATCH] Improved onboarding wording, removed debug.json from release builds, fixed layout --- .github/workflows/release.yml | 2 ++ src/components/general-elements/switch.scss | 5 +++++ src/components/onboarding.tsx | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7588e66a..a3cd2f8d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,8 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ + - name: Remove debug.json file for production build + run: rm dist/debug.json - run: npm ci - name: Tests run: npm test diff --git a/src/components/general-elements/switch.scss b/src/components/general-elements/switch.scss index ef36f44f..9e4180de 100644 --- a/src/components/general-elements/switch.scss +++ b/src/components/general-elements/switch.scss @@ -1,11 +1,15 @@ .switch { + display: flex; + * { display: inline-block; } .switch-outer { + flex: 0 0 1.8rem; width: 1.8rem; height: 1rem; + margin-top: 0; background: #eaeaea; border-radius: 0.5rem; } @@ -19,6 +23,7 @@ } .switch-label { + flex: 1 1; padding-left: 0.7rem; } diff --git a/src/components/onboarding.tsx b/src/components/onboarding.tsx index 0a737ca7..e86c5858 100644 --- a/src/components/onboarding.tsx +++ b/src/components/onboarding.tsx @@ -151,7 +151,7 @@ export function OnboardingPage() { setState({ ...state, privacyPolicy: newVal }) } value={state.privacyPolicy}> - I have read and agree to the privacy policy. + I have read and accept the privacy policy. )}