From 3f1166b5aa7b5c899c274b49931acc68aa85c82a Mon Sep 17 00:00:00 2001 From: Vitalii Date: Thu, 27 Apr 2023 14:16:53 +0300 Subject: [PATCH] web/satellite: added update your session timeout banner Added new banner to inform user that they can update their session timeout now. Issue: https://github.com/storj/storj/issues/5772 Change-Id: Icdf2164b80b12954d004537a4f31d30ef6bb12b8 --- .../src/components/common/VBanner.vue | 22 +++++--- .../UpdateSessionTimeoutBanner.vue | 56 +++++++++++++++++++ .../project/dashboard/ProjectDashboard.vue | 1 + web/satellite/src/store/modules/appStore.ts | 9 +++ web/satellite/src/utils/localData.ts | 9 +++ web/satellite/src/views/DashboardArea.vue | 32 +++++++++-- .../views/all-dashboard/AllDashboardArea.vue | 55 ++++++++++-------- 7 files changed, 149 insertions(+), 35 deletions(-) create mode 100644 web/satellite/src/components/notifications/UpdateSessionTimeoutBanner.vue diff --git a/web/satellite/src/components/common/VBanner.vue b/web/satellite/src/components/common/VBanner.vue index 4acee5d99..3e2a0563c 100644 --- a/web/satellite/src/components/common/VBanner.vue +++ b/web/satellite/src/components/common/VBanner.vue @@ -83,8 +83,11 @@ watch(() => props.dashboardRef, () => { border-radius: 10px; box-shadow: 0 7px 20px rgba(0 0 0 / 15%); - @media screen and (max-width: 800px) { - margin: 0 1.5rem; + @media screen and (max-width: 450px) { + flex-direction: column; + align-items: flex-start; + row-gap: 10px; + position: relative; } &__icon { @@ -123,6 +126,7 @@ watch(() => props.dashboardRef, () => { display: flex; align-items: center; justify-content: space-between; + column-gap: 10px; } &__close { @@ -130,6 +134,13 @@ watch(() => props.dashboardRef, () => { height: 15px; margin-left: 2.375rem; cursor: pointer; + flex-shrink: 0; + + @media screen and (max-width: 450px) { + position: absolute; + right: 20px; + top: 20px; + } } } @@ -146,11 +157,4 @@ watch(() => props.dashboardRef, () => { text-decoration: underline !important; cursor: pointer; } - -@media screen and (max-width: 500px) { - - .notification-wrap { - right: 15px; - } -} diff --git a/web/satellite/src/components/notifications/UpdateSessionTimeoutBanner.vue b/web/satellite/src/components/notifications/UpdateSessionTimeoutBanner.vue new file mode 100644 index 000000000..b7ea26678 --- /dev/null +++ b/web/satellite/src/components/notifications/UpdateSessionTimeoutBanner.vue @@ -0,0 +1,56 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + + + diff --git a/web/satellite/src/components/project/dashboard/ProjectDashboard.vue b/web/satellite/src/components/project/dashboard/ProjectDashboard.vue index a7fc360bf..f5a8711b2 100644 --- a/web/satellite/src/components/project/dashboard/ProjectDashboard.vue +++ b/web/satellite/src/components/project/dashboard/ProjectDashboard.vue @@ -455,6 +455,7 @@ onBeforeUnmount((): void => {