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