Spaces:
Running
Running
Fix: Calculator input display issue
Browse filesThe calculator app's input display was not showing the numbers correctly. It was hiding the first 1-2 numbers when the input was small and hiding the last numbers as the input grew. This issue has been resolved by modifying the `style.css` file to allow the input to expand as needed and enable horizontal scrolling.
style.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
.calculator {
|
3 |
width: 300px;
|
4 |
margin: 50px auto;
|
@@ -8,13 +7,15 @@
|
|
8 |
}
|
9 |
|
10 |
.calculator input {
|
11 |
-
width:
|
12 |
padding: 20px;
|
13 |
font-size: 24px;
|
14 |
border: none;
|
15 |
background-color: #222;
|
16 |
color: white;
|
17 |
text-align: right;
|
|
|
|
|
18 |
}
|
19 |
|
20 |
.calculator .buttons {
|
@@ -46,4 +47,4 @@
|
|
46 |
|
47 |
.calculator .buttons button:nth-child(4n):hover {
|
48 |
background-color: #f2b96e;
|
49 |
-
}
|
|
|
|
|
1 |
.calculator {
|
2 |
width: 300px;
|
3 |
margin: 50px auto;
|
|
|
7 |
}
|
8 |
|
9 |
.calculator input {
|
10 |
+
width: auto;
|
11 |
padding: 20px;
|
12 |
font-size: 24px;
|
13 |
border: none;
|
14 |
background-color: #222;
|
15 |
color: white;
|
16 |
text-align: right;
|
17 |
+
white-space: nowrap;
|
18 |
+
overflow-x: auto;
|
19 |
}
|
20 |
|
21 |
.calculator .buttons {
|
|
|
47 |
|
48 |
.calculator .buttons button:nth-child(4n):hover {
|
49 |
background-color: #f2b96e;
|
50 |
+
}
|