Skip to content

Commit 876b224

Browse files
committed
Fix zoom issues as Chrome updates
1 parent a95b831 commit 876b224

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/frontend/core/renderers/Array2DRenderer/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Array2DRenderer extends Renderer {
1919

2020
return (
2121
<table className={styles.array_2d}
22-
style={{ marginLeft: -this.centerX * 2, marginTop: -this.centerY * 2, fontSize: this.zoom }}>
22+
style={{ marginLeft: -this.centerX * 2, marginTop: -this.centerY * 2, transform: `scale(${this.zoom})` }}>
2323
<tbody>
2424
<tr className={styles.row}>
2525
{

src/frontend/core/renderers/Array2DRenderer/stylesheet.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77

88
.row {
99
display: table-row;
10-
height: 28em;
10+
height: 28px;
1111

1212
.col {
1313
display: table-cell;
1414
text-align: center;
15-
min-width: 28em;
15+
min-width: 28px;
1616
background-color: $theme-normal;
17-
border: 1em solid $theme-light;
18-
padding: 0 4em;
17+
border: 1px solid $theme-light;
18+
padding: 0 4px;
1919

2020
.value {
21-
font-size: 12em;
21+
font-size: 12px;
2222
}
2323

2424
&.selected {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy