From adbd4fbab2aba93fdb6cd0fe466435db70ab31e7 Mon Sep 17 00:00:00 2001 From: Vitalii Date: Mon, 19 Jun 2023 15:35:33 +0300 Subject: [PATCH] web/satellite: applied styling updates for gallery view Add "geographic distribution" item into three-dot menu. On small screens, instead of showing three-dot menu + geographic distribution, show three-dot menu + download. Allow the user to use left and right arrow keys to navigate through previews in gallery view. Update "Do not share download link with other people" notification according to new designs. Add hover styles and tooltips to icons according to designs. In the "View Details" modal, change "Saved in" to "Bucket". (not related to gallery view) - the three-dot-menu in the file list has a border radius, but when you hover over the last component ("Delete"), the border radius goes away. Issue: https://github.com/storj/storj/issues/5968 Change-Id: I39bec2e630327d136cb2550dbbce4fcbf77399f9 --- .../src/components/browser/FileEntry.vue | 18 +++++- .../browser/galleryView/ButtonIcon.vue | 48 ++++++++++++++- .../browser/galleryView/GalleryView.vue | 59 ++++++++++++++++--- .../browser/galleryView/OptionsDropdown.vue | 23 ++++++-- .../browser/galleryView/modals/Details.vue | 2 +- .../notifications/NotificationItem.vue | 17 +++++- .../src/store/modules/notificationsStore.ts | 3 +- .../src/types/DelayedNotification.ts | 4 +- .../src/utils/plugins/notificator.ts | 4 +- .../browser/galleryView/downloadSmall.svg | 3 - .../images/browser/galleryView/shareSmall.svg | 3 - 11 files changed, 156 insertions(+), 28 deletions(-) delete mode 100644 web/satellite/static/images/browser/galleryView/downloadSmall.svg delete mode 100644 web/satellite/static/images/browser/galleryView/shareSmall.svg diff --git a/web/satellite/src/components/browser/FileEntry.vue b/web/satellite/src/components/browser/FileEntry.vue index 98005430c..3088c876e 100644 --- a/web/satellite/src/components/browser/FileEntry.vue +++ b/web/satellite/src/components/browser/FileEntry.vue @@ -419,7 +419,13 @@ function openDropdown(): void { async function download(): Promise { try { await obStore.download(props.file); - notify.warning('Do not share download link with other people. If you want to share this data better use "Share" option.'); + const message = ` +

Downloading...

+

+ Keep this download link private.
If you want to share, use the Share option. +

+ `; + notify.success('', message); } catch (error) { notify.error('Can not download your file', AnalyticsErrorEventSource.FILE_BROWSER_ENTRY); } @@ -500,7 +506,15 @@ function cancelDeletion(): void { } .dropdown-item.action.p-3.action { - font-family: 'Inter', sans-serif; + font-family: 'font_regular', sans-serif; + } + + &:first-of-type { + border-radius: 6px 6px 0 0; + } + + &:last-of-type { + border-radius: 0 0 6px 6px; } &__label { diff --git a/web/satellite/src/components/browser/galleryView/ButtonIcon.vue b/web/satellite/src/components/browser/galleryView/ButtonIcon.vue index 58dee69a3..088e38d80 100644 --- a/web/satellite/src/components/browser/galleryView/ButtonIcon.vue +++ b/web/satellite/src/components/browser/galleryView/ButtonIcon.vue @@ -2,18 +2,28 @@ // See LICENSE for copying information.