fix(calc-02): constrain keypad area with internal scrolling

Wrap the keypad, function, and trig panels in a dedicated scroll area so the calculator shell can use a fixed grid layout without overflowing the viewport. Also update panel styling to preserve spacing and scrollbar behavior.
This commit is contained in:
2026-05-16 22:40:23 +02:00
parent c69380d057
commit 5f2d18df99
2 changed files with 26 additions and 19 deletions
+14 -7
View File
@@ -56,14 +56,15 @@ body {
height: 100vh;
max-height: 100vh;
padding: 8px;
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
gap: 8px;
border-radius: 8px;
background: var(--panel);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
justify-content: stretch;
align-content: start;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(46, 105, 135, 1);
overflow: hidden;
}
.display-block,
@@ -139,6 +140,7 @@ body {
.display-buttons-panel {
padding: 8px;
min-height: 0;
background: rgba(6, 10, 16, 0.16);
}
.display-buttons-grid {
@@ -225,12 +227,17 @@ body {
.calculator > .display-block,
.calculator > .display-buttons-panel,
.calculator > .keypad-panel,
.calculator > .functions-panel,
.calculator > .trigo-panel {
.calculator > .keypad-scroll-area {
justify-self: stretch;
}
.keypad-scroll-area {
min-height: 0;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(46, 105, 135, 1);
}
.status-bar {
position: absolute;
top: 0;
@@ -287,7 +294,6 @@ button {
border: 1px solid rgba(14, 18, 25, 0.85);
border-radius: 8px;
padding: 8px 8px;
font: inherit;
font-weight: 700;
color: var(--btnText);
@@ -322,6 +328,7 @@ button:active {
opacity: 0.7;
}
}
.stack-copy-button {
padding: 4px;
min-width: 24px;