diff --git a/game/game.js b/game/game.js index a7e1bac3c..99cf57498 100644 --- a/game/game.js +++ b/game/game.js @@ -22376,7 +22376,7 @@ } }, logv:function(player,card,targets,event,forced,logvid){ - var node=ui.create.div(); + var node=ui.create.div('.hidden'); node.node={}; logvid=logvid||get.id(); if(!player){ @@ -22501,15 +22501,32 @@ node.targets=targets; } } - if(lib.config.low_performance||ui.historybar.scrollTop>0){ - node.classList.add('nozoom'); - } + var fullheight=ui.historybar.offsetHeight; + var num=Math.round((fullheight-8)/50); + var margin=(fullheight-42*num)/(num+1); + node.style.transform='scale(0.8)'; ui.historybar.insertBefore(node,ui.historybar.firstChild); - if(ui.historybar.childElementCount>20){ - ui.historybar.lastChild.remove(); - } + ui.refresh(node); + node.classList.remove('hidden'); + for(var i=0;idiv:not(.nozoom) { - animation: history_start 0.5s; - -webkit-animation: history_start 0.5s; + position: absolute; } #historybar>div>.card { transform: scale(0.403846); @@ -1590,7 +1586,6 @@ div:not(.handcards)>.card>.info>span, overflow: hidden; opacity: 0 } -/*.control:not(.nozoom){width:0}*/ .control.removing.removing2 { transform: scale(0.2) }