From ec36b424073cdb2d28f2d98d4066f6ba951c23f1 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 7 Feb 2017 11:14:55 +0800 Subject: [PATCH] l --- game/game.js | 6 ++++-- layout/default/menu.css | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 8ab8d1332..c323ff064 100644 --- a/game/game.js +++ b/game/game.js @@ -23300,6 +23300,7 @@ buttons[i].node.hp._innerHTML=buttons[i].node.hp.innerHTML; } page.classList.add('menu-buttons'); + page.classList.add('leftbutton'); if(!connectMenu){ if(mode.indexOf('mode_')!=0){ ui.create.div('.config.more','隐藏武将包',page,function(){ @@ -23555,6 +23556,7 @@ buttons[i].listen(banCard); } page.classList.add('menu-buttons'); + page.classList.add('leftbutton'); if(!connectMenu&&mode.indexOf('mode_')!=0){ ui.create.div('.config.more','隐藏卡牌包',page,function(){ if(this.innerHTML=='隐藏卡牌包'){ @@ -26882,7 +26884,7 @@ var nodex4=ui.create.div('.menubutton','四',row2,clickrow2); var nodex5=ui.create.div('.menubutton','五',row2,clickrow2); - var row3=ui.create.div('.menu-buttons',page); + var row3=ui.create.div('.menu-buttons.leftbutton',page); row3.style.marginTop='3px'; var clickrow3=function(){ this.classList.toggle('glow'); @@ -26937,7 +26939,7 @@ var caption=ui.create.div('','选择一个换人目标',page); caption.style.margin='5px'; caption.style.marginTop='6px'; - var row3=ui.create.div('.menu-buttons',page); + var row3=ui.create.div('.menu-buttons.leftbutton',page); row3.style.marginTop='3px'; var currentrow3=null; diff --git a/layout/default/menu.css b/layout/default/menu.css index 30a74a68a..dc3298e1e 100644 --- a/layout/default/menu.css +++ b/layout/default/menu.css @@ -26,6 +26,11 @@ width: calc(100% - 10px) !important; padding-right: 5px !important; } +.menu-buttons.leftbutton{ + text-align: left; + margin-left: 10px; + width: calc(100% - 20px) !important; +} .menu-buttons div{ position: absolute; }