selectable room password

This commit is contained in:
Alberto Xamin 2020-11-25 21:08:28 +01:00
parent 8f35e86196
commit 973816ca1a
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2
2 changed files with 7 additions and 1 deletions

View File

@ -146,6 +146,12 @@ export default {
-ms-user-select: none; /* Internet Explorer 10 and later */ -ms-user-select: none; /* Internet Explorer 10 and later */
user-select: none; /* Likely future */ user-select: none; /* Likely future */
} }
.selectable {
-webkit-user-select: text !important; /* Chrome all and Safari all */
-moz-user-select: text !important; /* Firefox all */
-ms-user-select: text !important; /* Internet Explorer 10 and later */
user-select: text !important; /* Likely future */
}
#logo { #logo {
margin-top: 60pt; margin-top: 60pt;
margin-bottom: 60pt !important; margin-bottom: 60pt !important;

View File

@ -3,7 +3,7 @@
<div style="flex-grow: 4;"> <div style="flex-grow: 4;">
<h2 v-if="!started">Lobby: {{ lobbyName }}</h2> <h2 v-if="!started">Lobby: {{ lobbyName }}</h2>
<h3>Giocatori (tu sei {{username}})</h3> <h3>Giocatori (tu sei {{username}})</h3>
<h3 v-if="!started && password !== ''">Password: {{ password }}</h3> <h3 v-if="!started && password !== ''">Password: <span class="selectable">{{ password }}</span></h3>
<div v-if="!started && isRoomOwner"> <div v-if="!started && isRoomOwner">
<PrettyCheck class="p-switch p-fill" v-model="privateRoom">Stanza Privata</PrettyCheck> <PrettyCheck class="p-switch p-fill" v-model="privateRoom">Stanza Privata</PrettyCheck>
</div> </div>