Merge pull request #2 from albertoxamin/dev

selectable lobby passwords
This commit is contained in:
Alberto Xamin 2020-11-25 21:19:28 +01:00 committed by GitHub
commit 1575f8756a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -146,6 +146,12 @@ export default {
-ms-user-select: none; /* Internet Explorer 10 and later */
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 {
margin-top: 60pt;
margin-bottom: 60pt !important;
@ -157,7 +163,7 @@ export default {
zoom: 0.8;
}
}
h1,h2,h3,h4,p,span{
h1,h2,h3,h4,p,span,b,label{
font-family: Avenir, Helvetica, Arial, sans-serif;
}
.center-stuff {

View File

@ -3,10 +3,11 @@
<div style="flex-grow: 4;">
<h2 v-if="!started">Lobby: {{ lobbyName }}</h2>
<h3>Giocatori (tu sei {{username}})</h3>
<h3 v-if="!started && password !== ''">Password: {{ password }}</h3>
<div v-if="!started && isRoomOwner">
<PrettyCheck class="p-switch p-fill" v-model="privateRoom">Stanza Privata</PrettyCheck>
<div v-if="!started" >
<PrettyCheck v-if="isRoomOwner" class="p-switch p-fill" v-model="privateRoom">Stanza Privata</PrettyCheck>
<label v-if="password !== ''">Password: <b class="selectable" style="font-size:larger;">{{ password }}</b></label>
</div>
<div class="players-table">
<Card v-if="startGameCard" :card="startGameCard" @click.native="startGame"/>
<!-- <div style="position: relative;width:260pt;height:400pt;"> -->