projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix clocks + name display on small screens
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
b77f6b0
..
68afce3
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-96,7
+96,7
@@
main
)
img(src="/images/icons/rematch.svg")
#playersInfo
)
img(src="/images/icons/rematch.svg")
#playersInfo
- p(v-if="
largeScreen
")
+ p(v-if="
isLargeScreen()
")
span.name(:class="{connected: isConnected(0)}")
| {{ game.players[0].name || "@nonymous" }}
span.time(
span.name(:class="{connected: isConnected(0)}")
| {{ game.players[0].name || "@nonymous" }}
span.time(
@@
-284,6
+284,9
@@
export default {
}
this.send("losefocus");
},
}
this.send("losefocus");
},
+ isLargeScreen: function() {
+ return window.innerWidth >= 500;
+ },
participateInChat: function(p) {
return Object.keys(p.tmpIds).some(x => p.tmpIds[x].focus) && !!p.name;
},
participateInChat: function(p) {
return Object.keys(p.tmpIds).some(x => p.tmpIds[x].focus) && !!p.name;
},