diff --git a/src/App.vue b/src/App.vue index f8006e6..a2b9e3e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,7 +27,7 @@


-

{{ seat }}
-
+
+ {{ seat }} +
+
{{ seat }}
@@ -114,12 +117,11 @@ export default { }, personCountChange: function() { let diff = this.personCount - this.chosenSeats.length; - if (diff < 0) { // diff je záporné číslo for (let i = diff; i < 0; i++) { this.chosenSeats.pop(); } - } + } } } @@ -144,6 +146,15 @@ export default { background-color: lightgray; } + .seat .disabled { + color: brown; + } + + .seat .disabled:hover { + cursor: default; + background-color: transparent; + } + .seat .chosen { background-color: lightgreen; }