From 0dc309642ce34b5dbd7ff7c54097df4fe3d7a660 Mon Sep 17 00:00:00 2001 From: Sirttas Date: Wed, 22 May 2024 11:06:27 +0200 Subject: [PATCH] Flip tooltips --- src/components/Tooltip.vue | 35 ----------- src/components/index.ts | 2 +- src/components/tooltip/Tooltip.vue | 59 +++++++++++++++++++ src/components/tooltip/tooltip.ts | 3 + .../AcquisitionQuantilsTooltip.vue | 16 ++++- 5 files changed, 76 insertions(+), 39 deletions(-) delete mode 100644 src/components/Tooltip.vue create mode 100644 src/components/tooltip/Tooltip.vue create mode 100644 src/components/tooltip/tooltip.ts diff --git a/src/components/Tooltip.vue b/src/components/Tooltip.vue deleted file mode 100644 index 07fcc65..0000000 --- a/src/components/Tooltip.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index b39d25c..a554a86 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -3,5 +3,5 @@ export { default as Dropdown } from './Dropdown.vue'; export { default as LoadingSpinner } from './LoadingSpinner.vue'; export { default as Modal } from './Modal.vue'; export { default as SliderCheckbox } from './SliderCheckbox.vue'; -export { default as Tooltip } from './Tooltip.vue'; +export { default as Tooltip } from './tooltip/Tooltip.vue'; diff --git a/src/components/tooltip/Tooltip.vue b/src/components/tooltip/Tooltip.vue new file mode 100644 index 0000000..133e8c1 --- /dev/null +++ b/src/components/tooltip/Tooltip.vue @@ -0,0 +1,59 @@ + + + \ No newline at end of file diff --git a/src/components/tooltip/tooltip.ts b/src/components/tooltip/tooltip.ts new file mode 100644 index 0000000..7452433 --- /dev/null +++ b/src/components/tooltip/tooltip.ts @@ -0,0 +1,3 @@ +import { createSharedComposable, useWindowSize } from "@vueuse/core"; + +export const useSharedWindowSize = createSharedComposable(useWindowSize); \ No newline at end of file diff --git a/src/market/acquisition/AcquisitionQuantilsTooltip.vue b/src/market/acquisition/AcquisitionQuantilsTooltip.vue index 4227a28..bf33cf4 100644 --- a/src/market/acquisition/AcquisitionQuantilsTooltip.vue +++ b/src/market/acquisition/AcquisitionQuantilsTooltip.vue @@ -52,7 +52,7 @@ watchEffect(async () => {