From 60110b1885f63dd7d2d834db3fe74d4e05a53a13 Mon Sep 17 00:00:00 2001 From: nquidox Date: Thu, 25 Sep 2025 20:53:58 +0300 Subject: [PATCH] scroll to top button added --- src/components/ScrollToTopButton.vue | 77 ++++++++++++++++++++++++++++ src/views/ChartsView.vue | 2 + src/views/CollectionView.vue | 2 + 3 files changed, 81 insertions(+) create mode 100644 src/components/ScrollToTopButton.vue diff --git a/src/components/ScrollToTopButton.vue b/src/components/ScrollToTopButton.vue new file mode 100644 index 0000000..2b88819 --- /dev/null +++ b/src/components/ScrollToTopButton.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/views/ChartsView.vue b/src/views/ChartsView.vue index 6b5e365..d86e6d4 100644 --- a/src/views/ChartsView.vue +++ b/src/views/ChartsView.vue @@ -5,6 +5,7 @@ import PeriodSelector from '@/components/PeriodSelector.vue' import ChartsCard from '@/views/ChartsView/ChartsCard.vue' import router from '@/router/index.js' import ChartsSearch from '@/views/ChartsView/ChartsSearch.vue' +import ScrollToTopButton from '@/components/ScrollToTopButton.vue' const { getChartsPrices } = useChartsApi() @@ -62,6 +63,7 @@ const filteredPrices = computed(() => { +