adapt modal config for phone
Browse files
style.css
CHANGED
@@ -692,3 +692,46 @@ div#tab-saved-graphs {
|
|
692 |
max-height: 100vh !important;
|
693 |
overflow: hidden;
|
694 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
max-height: 100vh !important;
|
693 |
overflow: hidden;
|
694 |
}
|
695 |
+
|
696 |
+
|
697 |
+
/* Mobile specific modal configuration */
|
698 |
+
@media screen and (max-width: 767px) {
|
699 |
+
#modal-config {
|
700 |
+
width: 100%; /* Full width on mobile */
|
701 |
+
height: 100vh;
|
702 |
+
left: 0;
|
703 |
+
top: 0;
|
704 |
+
padding: 10px; /* Reduced padding for mobile */
|
705 |
+
}
|
706 |
+
|
707 |
+
#modal-config .block.modal-block.padded {
|
708 |
+
padding-top: 15px; /* Reduced top padding */
|
709 |
+
height: 100vh;
|
710 |
+
overflow-y: auto; /* Enable scrolling */
|
711 |
+
}
|
712 |
+
|
713 |
+
#modal-config .modal-container {
|
714 |
+
width: 100%;
|
715 |
+
height: 100%;
|
716 |
+
}
|
717 |
+
|
718 |
+
/* Show close button on mobile */
|
719 |
+
#modal-config .close {
|
720 |
+
display: block;
|
721 |
+
position: absolute;
|
722 |
+
top: 10px;
|
723 |
+
right: 10px;
|
724 |
+
z-index: 1001;
|
725 |
+
padding: 8px;
|
726 |
+
font-size: 24px;
|
727 |
+
background: none;
|
728 |
+
border: none;
|
729 |
+
cursor: pointer;
|
730 |
+
}
|
731 |
+
|
732 |
+
/* Ensure modal content is scrollable on mobile */
|
733 |
+
#modal-config .modal .wrap ul {
|
734 |
+
max-height: calc(100vh - 60px); /* Account for header space */
|
735 |
+
overflow-y: auto;
|
736 |
+
}
|
737 |
+
}
|