From 8c4a9f92770838a1462b9fab56482d7fd4f1896f Mon Sep 17 00:00:00 2001 From: Vitalii Date: Tue, 30 May 2023 13:23:12 +0300 Subject: [PATCH] web/satellite: improve onboarding CLI flow small screen adaptation Improved onboarding CLI flow view on smaller screens. Also improved notification boxes adaptation. Issue: https://github.com/storj/storj/issues/5894 Change-Id: I83dd8968df937d0d50535707e02914bd232fed21 --- .../components/notifications/NotificationArea.vue | 5 +++++ .../components/notifications/NotificationItem.vue | 4 ++++ .../onboardingTour/OnboardingTourArea.vue | 9 +++++---- .../components/onboardingTour/steps/CLIStep.vue | 10 +++++++++- .../onboardingTour/steps/cliFlow/AGPermissions.vue | 14 ++++++++++++++ .../onboardingTour/steps/cliFlow/ProgressBar.vue | 4 ++++ .../onboardingTour/steps/cliFlow/SuccessScreen.vue | 10 ++++++++++ .../steps/cliFlow/permissions/DurationPicker.vue | 13 +++++++++++++ .../steps/common/CLIFlowContainer.vue | 12 +++++++++++- .../onboardingTour/steps/common/OSContainer.vue | 4 ++++ .../onboardingTour/steps/common/TabWithCopy.vue | 2 +- .../onboardingTour/steps/common/ValueWithCopy.vue | 11 ++++++++++- 12 files changed, 90 insertions(+), 8 deletions(-) diff --git a/web/satellite/src/components/notifications/NotificationArea.vue b/web/satellite/src/components/notifications/NotificationArea.vue index c731dfe30..3aff46060 100644 --- a/web/satellite/src/components/notifications/NotificationArea.vue +++ b/web/satellite/src/components/notifications/NotificationArea.vue @@ -50,5 +50,10 @@ const doNotificationsExist = computed((): boolean => { border-radius: 12px; z-index: 9999; overflow: hidden; + + @media screen and (width <= 450px) { + width: unset; + left: 17px; + } } diff --git a/web/satellite/src/components/notifications/NotificationItem.vue b/web/satellite/src/components/notifications/NotificationItem.vue index f6eddc68f..bcc1ba968 100644 --- a/web/satellite/src/components/notifications/NotificationItem.vue +++ b/web/satellite/src/components/notifications/NotificationItem.vue @@ -171,6 +171,10 @@ onMounted((): void => { height: auto; width: 270px; word-break: break-word; + + @media screen and (width <= 450px) { + width: unset; + } } &__link { diff --git a/web/satellite/src/components/onboardingTour/OnboardingTourArea.vue b/web/satellite/src/components/onboardingTour/OnboardingTourArea.vue index d90c63c10..8ccdb1fbf 100644 --- a/web/satellite/src/components/onboardingTour/OnboardingTourArea.vue +++ b/web/satellite/src/components/onboardingTour/OnboardingTourArea.vue @@ -17,12 +17,13 @@ display: flex; flex-direction: column; align-items: center; -} -@media screen and (width <= 760px) { - - .tour-area { + @media screen and (width <= 760px) { width: 88% !important; } + + @media screen and (width <= 600px) { + padding: 30px 0 !important; + } } diff --git a/web/satellite/src/components/onboardingTour/steps/CLIStep.vue b/web/satellite/src/components/onboardingTour/steps/CLIStep.vue index ce9f424ff..d843e9765 100644 --- a/web/satellite/src/components/onboardingTour/steps/CLIStep.vue +++ b/web/satellite/src/components/onboardingTour/steps/CLIStep.vue @@ -2,7 +2,7 @@ // See LICENSE for copying information.