diff --git a/src/app/components/middle-section/middle-section.component.css b/src/app/components/middle-section/middle-section.component.css index 9bda405..f167728 100644 --- a/src/app/components/middle-section/middle-section.component.css +++ b/src/app/components/middle-section/middle-section.component.css @@ -1,3 +1,6 @@ + + + .borderless-custom { border-collapse: separate; border-spacing: 4px; @@ -57,6 +60,16 @@ div[style*="background-color: black"] .custom-cell { .pure-white { background-color: #ffffff !important; } +/* Desktop view (default) - reorder the layout */ +@media (min-width: 801px) { + .main-table { + order: 1; + } + + .transaction-summary { + order: 2; + } +} /* Responsive layout for tablet and mobile */ @media (max-width: 800px) { @@ -64,10 +77,10 @@ div[style*="background-color: black"] .custom-cell { flex-direction: column; align-items: center; height: auto; - overflow-y: auto; + max-height: 50vh; /* Optional: set a cap to avoid too much height */ + overflow-y: auto; /* Add vertical scrollbar */ padding-bottom: 1rem; } - .transaction-summary, .main-table { width: 80% !important; diff --git a/src/app/components/touch-pad-menu/touch-pad-menu.component.css b/src/app/components/touch-pad-menu/touch-pad-menu.component.css index 2dc99ab..a7dab40 100644 --- a/src/app/components/touch-pad-menu/touch-pad-menu.component.css +++ b/src/app/components/touch-pad-menu/touch-pad-menu.component.css @@ -5,6 +5,19 @@ border-radius: 8px; } +.scrollable-touchpad { + max-height: 65vh; + overflow-y: auto; +} + +.scrollable-touchpad::-webkit-scrollbar { + width: 6px; +} +.scrollable-touchpad::-webkit-scrollbar-thumb { + background-color: rgba(0, 0, 0, 0.2); + border-radius: 4px; +} + button { font-weight: bold; } @@ -13,6 +26,86 @@ button { background-color: #ffffff !important; border: 1px solid #ced4da; color: #5d6165; - } +/* ✅ Tablet & Mobile View */ +@media (max-width: 800px) { + .container-fluid { + padding: 0 1rem; + } + + .row.align-items-center { + flex-direction: column !important; + align-items: center; + gap: 0.5rem; + } + + /* Stack and center 3 sections */ + .touch-pad-container .row.gx-2 { + flex-direction: column; + align-items: center; + } + + .touch-pad-container .col-3 { + width: 90% !important; + margin-bottom: 1rem; + order: 1; + } + + .touch-pad-container .col-3 .row.gx-1 { + display: flex; + flex-wrap: wrap; + } + + .touch-pad-container .col-3 .col-4 { + flex: 0 0 33.3333%; + max-width: 33.3333%; + } + + .touch-pad-container .col-2 { + width: 90% !important; + margin-bottom: 1rem; + order: 2; + } + + .touch-pad-container .col-2 .row.gx-1 { + display: flex; + flex-wrap: wrap; + } + + .touch-pad-container .col-2 .col-6 { + flex: 0 0 50%; + max-width: 50%; + } + + .touch-pad-container .col-2 .col-4 { + flex: 0 0 33.3333%; + max-width: 33.3333%; + } + + .touch-pad-container .col-7 { + width: 90% !important; + margin: 0 auto 1rem auto; + order: 3; + } + + .touch-pad-container .col-7 .row.gx-1 { + display: flex; + flex-wrap: wrap; + } + + .touch-pad-container .col-7 .col-2 { + flex: 0 0 16.6667%; + max-width: 16.6667%; + } + + .col-2 .btn, + .col-3 .btn, + .col-7 .btn { + font-size: 1rem; + } + + .scrollable-touchpad { + max-height: 40vh; + } +} diff --git a/src/app/components/touch-pad-menu/touch-pad-menu.component.html b/src/app/components/touch-pad-menu/touch-pad-menu.component.html index 5d36208..3afe07e 100644 --- a/src/app/components/touch-pad-menu/touch-pad-menu.component.html +++ b/src/app/components/touch-pad-menu/touch-pad-menu.component.html @@ -1,99 +1,98 @@ - -