From 284719205d9b9d75d6095aab561e14186f4fb3d3 Mon Sep 17 00:00:00 2001 From: petr Date: Wed, 3 Feb 2021 10:43:14 +0100 Subject: [PATCH] uprava vyberu tridy --- src/App.vue | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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; }