mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-04-24 15:58:01 +00:00
Min-width on map
This commit is contained in:
@@ -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