提交 876b2242 编写于 作者: J Jason Park

Fix zoom issues as Chrome updates

上级 a95b8310
......@@ -19,7 +19,7 @@ class Array2DRenderer extends Renderer {
return (
<table className={styles.array_2d}
style={{ marginLeft: -this.centerX * 2, marginTop: -this.centerY * 2, fontSize: this.zoom }}>
style={{ marginLeft: -this.centerX * 2, marginTop: -this.centerY * 2, transform: `scale(${this.zoom})` }}>
<tbody>
<tr className={styles.row}>
{
......
......@@ -7,18 +7,18 @@
.row {
display: table-row;
height: 28em;
height: 28px;
.col {
display: table-cell;
text-align: center;
min-width: 28em;
min-width: 28px;
background-color: $theme-normal;
border: 1em solid $theme-light;
padding: 0 4em;
border: 1px solid $theme-light;
padding: 0 4px;
.value {
font-size: 12em;
font-size: 12px;
}
&.selected {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册