From 70ef817f2edfd1a531f4d60f5dd0ab14201dca49 Mon Sep 17 00:00:00 2001 From: Tucsky Date: Wed, 30 Oct 2024 00:06:44 +0100 Subject: [PATCH] feat: indicator scaleWith dropdown --- src/assets/sass/dialog.scss | 16 +- src/components/chart/IndicatorsOverlay.vue | 110 +++--------- src/components/chart/options.ts | 2 +- src/components/framework/BlobImage.vue | 45 +++++ src/components/framework/Dialog.vue | 1 + src/components/framework/Dropdown.vue | 28 ++++ src/components/framework/PromptDialog.vue | 33 ++-- src/components/framework/editor/Editor.vue | 8 +- .../framework/editor/EditorContextMenu.vue | 46 ++++- src/components/indicators/IndicatorDetail.vue | 2 +- src/components/indicators/IndicatorDialog.vue | 144 ++++++++-------- .../indicators/IndicatorDropdown.vue | 158 ++++++++++++++++++ .../indicators/IndicatorPreview.vue | 21 ++- .../indicators/PriceScaleButton.vue | 79 +++++++++ .../indicators/PriceScaleDropdown.vue | 71 ++++++++ .../library/PublishResourceDialog.vue | 2 +- src/store/panesSettings/chart.ts | 9 +- src/utils/helpers.ts | 4 +- 18 files changed, 563 insertions(+), 216 deletions(-) create mode 100644 src/components/framework/BlobImage.vue create mode 100644 src/components/indicators/IndicatorDropdown.vue create mode 100644 src/components/indicators/PriceScaleButton.vue create mode 100644 src/components/indicators/PriceScaleDropdown.vue diff --git a/src/assets/sass/dialog.scss b/src/assets/sass/dialog.scss index 90fde653..848d72b7 100644 --- a/src/assets/sass/dialog.scss +++ b/src/assets/sass/dialog.scss @@ -124,9 +124,12 @@ border-radius: 0.75rem 0.75rem 0 0; cursor: grab; + &-wrapper { + position: relative; + } + #{$self}--contrasted & { border-bottom: 0 !important; - padding-bottom: 0; background-color: var(--theme-base-o25); } @@ -153,10 +156,11 @@ } &__subheader { + position: relative; + z-index: 1; #{$self}--contrasted & { background-color: var(--theme-base-o25); - padding-top: 0.5rem; } } @@ -239,13 +243,7 @@ .dialog__close { text-align: center; - padding: 0.75rem; - margin: -0.75rem -0.75rem -0.75rem 0.75rem; - display: flex; - align-items: center; - justify-content: center; - align-self: stretch; - border-radius: 0 $border-radius-base 0 0; + margin: 0 -0.5rem 0 0.5rem; color: var(--theme-color-100); &:hover { diff --git a/src/components/chart/IndicatorsOverlay.vue b/src/components/chart/IndicatorsOverlay.vue index 8d6c571a..ceb2bca7 100644 --- a/src/components/chart/IndicatorsOverlay.vue +++ b/src/components/chart/IndicatorsOverlay.vue @@ -1,69 +1,11 @@ + + diff --git a/src/components/framework/Dialog.vue b/src/components/framework/Dialog.vue index 13b4b2ac..5d4dd982 100644 --- a/src/components/framework/Dialog.vue +++ b/src/components/framework/Dialog.vue @@ -30,6 +30,7 @@ @mousedown="handleDrag" @touchstart="handleDrag" > +