X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FProblems.vue;h=e17bead7ea68ff4cfb5b1991a5d6dbddbdb12ba4;hb=910d631b73cad5ffef1b4461157b704e7e7057d8;hp=d3dfdfd2913c6a779616bec576054b393de3919c;hpb=2f258c37c19c5be20ec68695ddfaec2c21f7f0ae;p=vchess.git
diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue
index d3dfdfd2..e17bead7 100644
--- a/client/src/views/Problems.vue
+++ b/client/src/views/Problems.vue
@@ -1,7 +1,13 @@
main
- input#modalNewprob.modal(type="checkbox" @change="infoMsg=''")
- div#newprobDiv(role="dialog" data-checkbox="modalNewprob")
+ input#modalNewprob.modal(
+ type="checkbox"
+ @change="infoMsg=''"
+ )
+ div#newprobDiv(
+ role="dialog"
+ data-checkbox="modalNewprob"
+ )
.card(@keyup.enter="sendProblem()")
label#closeNewprob.modal-close(for="modalNewprob")
fieldset
@@ -42,7 +48,7 @@ main
.col-sm-12.col-md-10.col-md-offset-2
#topPage
span.vname {{ curproblem.vname }}
- span.uname {{ "(" + curproblem.uname + ")" }}
+ span.uname ({{ curproblem.uname }})
button.marginleft(@click="backToList()") {{ st.tr["Back to list"] }}
button.nomargin(
v-if="st.user.id == curproblem.uid"
@@ -66,7 +72,7 @@ main
.row(v-else)
.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
#controls
- button#newProblem(onClick="doClick('modalNewprob')")
+ button#newProblem(onClick="window.doClick('modalNewprob')")
| {{ st.tr["New problem"] }}
label(for="checkboxMine") {{ st.tr["My problems"] }}
input#checkboxMine(
@@ -93,7 +99,11 @@ main
td {{ p.vname }}
td {{ firstChars(p.instruction) }}
td {{ p.id }}
- BaseGame(v-if="showOne" :game="game" :vr="vr")
+ BaseGame(
+ v-if="showOne"
+ :game="game"
+ :vr="vr"
+ )
@@ -344,13 +340,17 @@ export default {
[type="checkbox"].modal+div .card
max-width: 767px
max-height: 100%
+
#inputFen
width: 100%
+
textarea
width: 100%
+
#diagram
margin: 0 auto
max-width: 400px
+
#controls
margin: 0
width: 100%
@@ -373,5 +373,4 @@ textarea
@media screen and (max-width: 767px)
#topPage
text-align: center
-