mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-21 03:06:26 +00:00
Min-width on map
This commit is contained in:
1 parent
f4a4f1091a
commit
d10fb4a1e1
2 files changed
+2
No files matched your search
@@ -43,6 +43,7 @@
|
||||
}
|
||||
|
||||
.Chain-map {
|
||||
min-width: 1350px;
|
||||
background: url('../assets/world-map.svg') no-repeat;
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
|
||||
@@ -186,6 +186,7 @@ export class Chain extends React.Component<Chain.Props, Chain.State> {
|
||||
private calculateMapDimensions: () => void = () => {
|
||||
const vp = viewport();
|
||||
|
||||
vp.width = Math.max(1350, vp.width);
|
||||
vp.height -= HEADER;
|
||||
|
||||
const ratio = vp.width / vp.height;
|
||||
|
||||
Reference in new issue
Block a user