Skip to content

Commit 4f65a07

Browse files
committed
fix: always set margin on keys to have consistent sizes on keys
1 parent 7849040 commit 4f65a07

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/keyboard.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@
303303
.line {
304304
display: flex;
305305
justify-content: space-around;
306+
margin-right: -$margin;
306307
&:not(:last-child) {
307308
margin-bottom: $margin;
308309
}
@@ -319,6 +320,7 @@
319320
height: $height;
320321
line-height: $height;
321322
overflow: hidden;
323+
margin-right: $margin;
322324
323325
vertical-align: middle;
324326
border: 1px solid #ccc;
@@ -334,10 +336,6 @@
334336
cursor: pointer;
335337
}
336338
337-
&:not(:last-child) > div {
338-
margin-right: $margin;
339-
}
340-
341339
&.backspace > div {
342340
background-image: url("./icons/backspace.svg");
343341
background-position: center center;

0 commit comments

Comments
 (0)