From 0af21689d00d86235aebfbbaf97ca6bc6137a5fa Mon Sep 17 00:00:00 2001 From: HugoRCD Date: Thu, 9 Jan 2025 12:08:24 +0100 Subject: [PATCH] improvement --- apps/currencia/app/components/ThemeToggle.vue | 47 ++++++++++++++---- apps/currencia/app/components/chart/Line.vue | 13 +++-- .../app/pages/app/crypto/[symbol].vue | 27 +++++----- apps/currencia/nuxt.config.ts | 8 +-- apps/currencia/package.json | 4 +- bun.lockb | Bin 536532 -> 595772 bytes 6 files changed, 63 insertions(+), 36 deletions(-) diff --git a/apps/currencia/app/components/ThemeToggle.vue b/apps/currencia/app/components/ThemeToggle.vue index 0e2f1b9..f07fcde 100644 --- a/apps/currencia/app/components/ThemeToggle.vue +++ b/apps/currencia/app/components/ThemeToggle.vue @@ -1,13 +1,27 @@ @@ -26,34 +49,36 @@ function startViewTransition(theme) { :icon="$colorMode.value === 'light' ? 'heroicons:moon-20-solid' : 'heroicons:sun-20-solid'" color="gray" variant="ghost" + square aria-label="Theme" @click="startViewTransition($colorMode.value === 'light' ? 'dark' : 'light')" />