diff --git a/src/App.vue b/src/App.vue
index 7800c1b..8e95ba3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,6 +5,7 @@
:is-public="isPublic"
:players="players"
:roles="roles"
+ :zoom="zoom"
>
- Toggle Grimoire
+ -
+ Size
+
+ {{ Math.round(zoom * 100) }}%
+
+
-
Add Player
@@ -84,7 +91,8 @@ export default {
isRoleModalOpen: false,
players: [],
roles: this.getRolesByEdition(),
- edition: "tb"
+ edition: "tb",
+ zoom: 1
};
},
methods: {
diff --git a/src/components/Player.vue b/src/components/Player.vue
index fdd56ca..51bf736 100644
--- a/src/components/Player.vue
+++ b/src/components/Player.vue
@@ -169,10 +169,6 @@ export default {
}
&.dead {
- &.traveler {
- filter: grayscale(100%);
- }
-
&.no-vote .life:after {
display: none;
}
@@ -193,6 +189,10 @@ export default {
}
}
}
+
+ &.traveler .life {
+ filter: grayscale(100%);
+ }
}
#townsquare.public .player {
diff --git a/src/components/RoleSelectionModal.vue b/src/components/RoleSelectionModal.vue
index 1230a18..3531a79 100644
--- a/src/components/RoleSelectionModal.vue
+++ b/src/components/RoleSelectionModal.vue
@@ -61,8 +61,10 @@ export default {
},
computed: {
nontravelerPlayers: function() {
- return this.players.filter(({ role }) => role && role.team !== "traveler")
- .length;
+ return Math.min(
+ this.players.filter(({ role }) => role && role.team !== "traveler").length,
+ 15
+ );
},
selectedRoles: function() {
return Object.values(this.roleSelection)
diff --git a/src/components/TownInfo.vue b/src/components/TownInfo.vue
index 4cdebf4..c3e11b7 100644
--- a/src/components/TownInfo.vue
+++ b/src/components/TownInfo.vue
@@ -52,9 +52,10 @@ export default {
},
computed: {
teams: function() {
- const nontravelers = this.players.filter(
- player => player.role.team !== "traveler"
- ).length;
+ const nontravelers = Math.min(
+ this.players.filter(player => player.role.team !== "traveler").length,
+ 15
+ );
const alive = this.players.filter(player => player.hasDied !== true)
.length;
return {
diff --git a/src/components/TownSquare.vue b/src/components/TownSquare.vue
index 134c708..5814bc6 100644
--- a/src/components/TownSquare.vue
+++ b/src/components/TownSquare.vue
@@ -1,5 +1,5 @@
-