[WIP] Фикс багов и скролла страницы медкартотчек
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user