From e1c2dccce64b262a3e42b0d61ce48ecc78d0f7f2 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Fri, 28 Jul 2023 12:38:32 +0300 Subject: [PATCH] =?UTF-8?q?[WIP]=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=B3=D0=BE=D0=B2=20=D0=B8=20=D1=81=D0=BA=D1=80=D0=BE=D0=BB?= =?UTF-8?q?=D0=BB=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B?= =?UTF-8?q?=20=D0=BC=D0=B5=D0=B4=D0=BA=D0=B0=D1=80=D1=82=D0=BE=D1=82=D1=87?= =?UTF-8?q?=D0=B5=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicDataForms/TodaysPatientsForm.vue | 10 +++++ .../ViewedMedicalRecordsForm.vue | 44 +++++++++++++------ .../components/CalendarOpenSidebar.vue | 16 ++----- .../components/CalendarSidebar.vue | 12 +---- src/pages/newCalendar/utils/calendarConfig.js | 20 ++++----- 5 files changed, 54 insertions(+), 48 deletions(-) diff --git a/src/pages/medcards/components/BasicDataForms/TodaysPatientsForm.vue b/src/pages/medcards/components/BasicDataForms/TodaysPatientsForm.vue index a18c5a8..587e38a 100644 --- a/src/pages/medcards/components/BasicDataForms/TodaysPatientsForm.vue +++ b/src/pages/medcards/components/BasicDataForms/TodaysPatientsForm.vue @@ -7,6 +7,7 @@ ) .form-wrapper.flex.flex-col.overflow-y-auto( @scroll="scrollTo", + id="scroll", :class="{'default-form': patientsData.length <= 3}" ) .patient.flex.items-center.p-4.justify-between( @@ -91,6 +92,14 @@ export default { return (this.isGradient = false); this.isGradient = true; }, + checkScroll() { + let elem = document.getElementById("scroll"); + if (Math.abs(elem.scrollHeight - elem.clientHeight - elem.scrollTop)) + this.isGradient = true; + }, + }, + mounted() { + this.checkScroll(); }, }; @@ -123,6 +132,7 @@ export default { border-bottom: 1px solid var(--gray-secondary) border-right: 1px solid var(--gray-secondary) margin-right: 8px + height: 77px &:last-child border-bottom: none diff --git a/src/pages/medcards/components/BasicDataForms/ViewedMedicalRecordsForm.vue b/src/pages/medcards/components/BasicDataForms/ViewedMedicalRecordsForm.vue index 0d49b79..ba78a37 100644 --- a/src/pages/medcards/components/BasicDataForms/ViewedMedicalRecordsForm.vue +++ b/src/pages/medcards/components/BasicDataForms/ViewedMedicalRecordsForm.vue @@ -1,12 +1,13 @@