remove player names from character reference / night order modal when town square is public (closes #119)

This commit is contained in:
Steffen 2021-03-14 20:29:36 +01:00
parent 915ae1bb44
commit a849001068
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
2 changed files with 14 additions and 4 deletions

View File

@ -25,7 +25,7 @@
> >
<span class="name"> <span class="name">
{{ role.name }} {{ role.name }}
<template v-if="role.players.length"> <span class="player" v-if="role.players.length">
<br /> <br />
<small <small
v-for="(player, index) in role.players" v-for="(player, index) in role.players"
@ -35,7 +35,7 @@
player.name + (role.players.length > index + 1 ? "," : "") player.name + (role.players.length > index + 1 ? "," : "")
}}</small }}</small
> >
</template> </span>
</span> </span>
<span <span
class="icon" class="icon"
@ -77,7 +77,7 @@
></span> ></span>
<span class="name"> <span class="name">
{{ role.name }} {{ role.name }}
<template v-if="role.players.length"> <span class="player" v-if="role.players.length">
<br /> <br />
<small <small
v-for="(player, index) in role.players" v-for="(player, index) in role.players"
@ -87,7 +87,7 @@
player.name + (role.players.length > index + 1 ? "," : "") player.name + (role.players.length > index + 1 ? "," : "")
}}</small }}</small
> >
</template> </span>
</span> </span>
<span class="reminder" v-if="role.otherNightReminder"> <span class="reminder" v-if="role.otherNightReminder">
{{ role.otherNightReminder }} {{ role.otherNightReminder }}
@ -362,4 +362,9 @@ ul {
} }
} }
} }
/** hide players when town square is set to "public" **/
#townsquare.public ~ .night-reference .modal .player {
display: none;
}
</style> </style>

View File

@ -235,4 +235,9 @@ ul {
} }
} }
} }
/** hide players when town square is set to "public" **/
#townsquare.public ~ .characters .modal .player {
display: none;
}
</style> </style>