Skip to content

Commit e829312

Browse files
committed
fix: always set margin on keys to have consistent sizes on keys
1 parent 9cc9694 commit e829312

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
@@ -311,6 +311,7 @@
311311
.line {
312312
display: flex;
313313
justify-content: space-around;
314+
margin-right: -$margin;
314315
&:not(:last-child) {
315316
margin-bottom: $margin;
316317
}
@@ -327,6 +328,7 @@
327328
height: $height;
328329
line-height: $height;
329330
overflow: hidden;
331+
margin-right: $margin;
330332
331333
vertical-align: middle;
332334
border: 1px solid #ccc;
@@ -342,10 +344,6 @@
342344
cursor: pointer;
343345
}
344346
345-
&:not(:last-child) > div {
346-
margin-right: $margin;
347-
}
348-
349347
&.backspace > div {
350348
background-image: url("./icons/backspace.svg");
351349
background-position: center center;

0 commit comments

Comments
 (0)