From b64be2338d490368267c2fcad9ac7487f41e38eb Mon Sep 17 00:00:00 2001 From: Vitalii Date: Fri, 2 Jun 2023 16:31:36 +0300 Subject: [PATCH] web/satellite: added distribution modal for gallery view Added Object Geographic Distribution modal for gallery view. Issue: https://github.com/storj/storj/issues/5824 Change-Id: I379bb933d4f9e759e59882aceb0e74cce79cc5e5 --- .../browser/galleryView/GalleryView.vue | 4 +- .../galleryView/modals/Distribution.vue | 101 ++++++++++++++++++ .../galleryView/modals/ModalHeader.vue | 14 +++ 3 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 web/satellite/src/components/browser/galleryView/modals/Distribution.vue diff --git a/web/satellite/src/components/browser/galleryView/GalleryView.vue b/web/satellite/src/components/browser/galleryView/GalleryView.vue index bf2838182..8ea4ec9eb 100644 --- a/web/satellite/src/components/browser/galleryView/GalleryView.vue +++ b/web/satellite/src/components/browser/galleryView/GalleryView.vue @@ -20,7 +20,7 @@ :on-press="toggleDropdown" :is-active="isOptionsDropdown === true" /> - + @@ -84,6 +84,7 @@ :is="activeModal" :on-close="() => setActiveModal(undefined)" :object="file" + :map-url="objectMapUrl" /> @@ -103,6 +104,7 @@ import { RouteConfig } from '@/router'; import ButtonIcon from '@/components/browser/galleryView/ButtonIcon.vue'; import OptionsDropdown from '@/components/browser/galleryView/OptionsDropdown.vue'; import DetailsModal from '@/components/browser/galleryView/modals/Details.vue'; +import DistributionModal from '@/components/browser/galleryView/modals/Distribution.vue'; import VLoader from '@/components/common/VLoader.vue'; import VButton from '@/components/common/VButton.vue'; diff --git a/web/satellite/src/components/browser/galleryView/modals/Distribution.vue b/web/satellite/src/components/browser/galleryView/modals/Distribution.vue new file mode 100644 index 000000000..7bcf3ba49 --- /dev/null +++ b/web/satellite/src/components/browser/galleryView/modals/Distribution.vue @@ -0,0 +1,101 @@ +// Copyright (C) 2023 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/satellite/src/components/browser/galleryView/modals/ModalHeader.vue b/web/satellite/src/components/browser/galleryView/modals/ModalHeader.vue index d6773c16e..7f52551a5 100644 --- a/web/satellite/src/components/browser/galleryView/modals/ModalHeader.vue +++ b/web/satellite/src/components/browser/galleryView/modals/ModalHeader.vue @@ -23,6 +23,15 @@ const props = defineProps<{ margin-bottom: 16px; border-bottom: 1px solid var(--c-grey-2); + svg { + min-width: 40px; + } + + @media screen and (width <= 450px) { + flex-direction: column; + align-items: flex-start; + } + &__title { font-family: 'font_bold', sans-serif; font-size: 24px; @@ -30,6 +39,11 @@ const props = defineProps<{ letter-spacing: -0.02em; color: var(--c-black); margin-left: 16px; + text-align: left; + + @media screen and (width <= 450px) { + margin: 16px 0 0; + } } }