X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=ae90255d2cd7931d8d99187f86065040c97df7dc;hb=26d8a01a40dc198b633ae86f698b1ae82415e5e1;hp=0d7a4ee90b1dd1ceb3ec706ffd82ddaa00677403;hpb=de6860abfca2fee63d61b6ec7145dfc89d9e50c8;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 0d7a4ee9..ae90255d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1243,21 +1243,21 @@ export default { await import("@/variants/" + game.vname + ".js") .then((vModule) => { window.V = vModule[game.vname + "Rules"]; - // (AJAX) Request to get rules content (plain text, HTML) - this.rulesContent = - require( - "raw-loader!@/translations/rules/" + - game.vname + "/" + - this.st.lang + ".pug" - ) - // Next two lines fix a weird issue after last update (2019-11) - .replace(/\\n/g, " ") - .replace(/\\"/g, '"') - .replace('module.exports = "', "") - .replace(/"$/, "") - .replace(/(fen:)([^:]*):/g, replaceByDiag); this.loadGame(game, callback); }); + // (AJAX) Request to get rules content (plain text, HTML) + this.rulesContent = + require( + "raw-loader!@/translations/rules/" + + game.vname + "/" + + this.st.lang + ".pug" + ) + // Next two lines fix a weird issue after last update (2019-11) + .replace(/\\n/g, " ") + .replace(/\\"/g, '"') + .replace('module.exports = "', "") + .replace(/"$/, "") + .replace(/(fen:)([^:]*):/g, replaceByDiag); }, // 3 cases for loading a game: // - from indexedDB (running or completed live game I play) @@ -1615,8 +1615,10 @@ export default { #rulesDiv > .card padding: 5px 0 - max-width: 75% + max-width: 50% max-height: 100% + @media screen and (max-width: 1500px) + max-width: 67% @media screen and (max-width: 1024px) max-width: 85% @media screen and (max-width: 767px) @@ -1758,82 +1760,6 @@ h4#variantNameInGame