Skip to content

Commit 0bb02a0

Browse files
committed
Corrected input width calculation to prevent overflow
1 parent 98740e8 commit 0bb02a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/GraphInspector.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@
111111
}
112112

113113
.input {
114-
width: 100%;
114+
width: calc(100% - 8px); /* Subtract padding from width */
115115
padding: 4px;
116116
border-radius: 4px;
117117
font-family: 'Inter', sans-serif;
118118
font-size: 13px;
119+
box-sizing: border-box; /* Include padding in width calculation */
119120
}
120121

121122
.inputDark {

0 commit comments

Comments
 (0)