fix crazyhouse 3d pockets
This commit is contained in:
parent
beff250ee1
commit
bdca3aa122
|
@ -608,8 +608,8 @@ div.table {
|
||||||
}
|
}
|
||||||
.pocket piece {
|
.pocket piece {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
width: 56px;
|
width: 56px!important;
|
||||||
height: 56px;
|
height: 56px!important;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.pocket piece:first-child {
|
.pocket piece:first-child {
|
||||||
|
|
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
var oKeys = Object.keys(pocket)
|
var oKeys = Object.keys(pocket)
|
||||||
var usable = color === ctrl.chessground.data.movable.color;
|
var usable = color === ctrl.chessground.data.movable.color;
|
||||||
return m('div', {
|
return m('div', {
|
||||||
class: 'pocket ' + position + (usable ? ' usable' : ''),
|
class: 'pocket is2d ' + position + (usable ? ' usable' : ''),
|
||||||
config: function(el, isUpdate, context) {
|
config: function(el, isUpdate, context) {
|
||||||
if (isUpdate) return;
|
if (isUpdate) return;
|
||||||
var onstart = partial(crazyDrag, ctrl, color);
|
var onstart = partial(crazyDrag, ctrl, color);
|
||||||
|
|
Loading…
Reference in a new issue