[WIP] Фикс багов и скролла страницы медкартотчек

This commit is contained in:
megavrilinvv
2023-07-28 12:38:32 +03:00
parent e808c23288
commit e1c2dccce6
5 changed files with 54 additions and 48 deletions

View File

@@ -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();
},
};
</script>
@@ -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