From b40546ed9fe2a8037d3ea830587dd9205becc727 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Thu, 4 Sep 2025 13:25:51 +0200 Subject: [PATCH] feat: enhance UI components with consistent background styling for improved visibility --- app/components/chat/CommandPalette.vue | 30 +++++++++++++++++++++++++- app/components/tool/Activity.vue | 2 +- app/components/tool/Contact.vue | 2 +- app/components/tool/Language.vue | 2 +- app/components/tool/Projects.vue | 2 +- app/components/tool/Skills.vue | 2 +- app/components/tool/Theme.vue | 2 +- app/components/tool/Weather.vue | 2 +- 8 files changed, 36 insertions(+), 8 deletions(-) diff --git a/app/components/chat/CommandPalette.vue b/app/components/chat/CommandPalette.vue index 9ec8539..dcbb37f 100644 --- a/app/components/chat/CommandPalette.vue +++ b/app/components/chat/CommandPalette.vue @@ -40,7 +40,7 @@ defineShortcuts({ meta_k: () => openMessageModal.value = !openMessageModal.value, meta_d: () => openClearModal.value = !openClearModal.value, l: () => changeLocale(currentLocale.value!.code === 'en' ? 'fr' : currentLocale.value!.code === 'fr' ? 'es' : 'en'), - t: () => toggleDark({ clientX: window.innerWidth, clientY: 0 }), + t: () => toggleDark({ clientX: window.innerWidth / 2, clientY: window.innerHeight }), }) const modalUi = { @@ -53,6 +53,14 @@ const commandPaletteUi = { item: 'data-highlighted:not-data-disabled:before:bg-muted', content: 'flex-1 overflow-y-auto', } + +function up() { + window.scrollTo({ top: 0, behavior: 'smooth' }) +} + +function down() { + window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' }) +}