From 621de118900e3730a9a0f147a0461cc1d26dfd07 Mon Sep 17 00:00:00 2001 From: guillermo Date: Fri, 26 Jul 2024 13:14:45 +0200 Subject: [PATCH] fix: refs #6769 Requested changes --- src/css/app.scss | 25 +++++++++++++++++++++++++ src/pages/Item/Card/ItemDiary.vue | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/css/app.scss b/src/css/app.scss index 654a8f1f8..9e1537472 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -209,6 +209,31 @@ input::-webkit-inner-spin-button { max-width: 100%; } +.q-table__container { + /* ===== Scrollbar CSS ===== / + / Firefox */ + + * { + scrollbar-width: auto; + scrollbar-color: var(--vn-label-color) transparent; + } + + /* Chrome, Edge, and Safari */ + *::-webkit-scrollbar { + width: 10px; + height: 10px; + } + + *::-webkit-scrollbar-thumb { + background-color: var(--vn-label-color); + border-radius: 10px; + } + + *::-webkit-scrollbar-track { + background: transparent; + } +} + .q-table { thead, tbody { diff --git a/src/pages/Item/Card/ItemDiary.vue b/src/pages/Item/Card/ItemDiary.vue index 32b306883..bd60745cd 100644 --- a/src/pages/Item/Card/ItemDiary.vue +++ b/src/pages/Item/Card/ItemDiary.vue @@ -115,7 +115,7 @@ const getBadgeAttrs = (_date) => { const scrollToToday = async () => { await nextTick(); - const today = new Date(); + const today = Date.vnNew(); today.setHours(0, 0, 0, 0); const todayCell = document.querySelector(`td[data-date="${today.toISOString()}"]`); if (todayCell) {