Skip to content

Commit 78e5f7a

Browse files
achen2401Amy Chen
and
Amy Chen
authored
fix graph responsive sizes in larger browser widths (#49)
* fix graph responsive sizes in larger browser widths * minor styling fix * panel overview styling fix * minor styling fix Co-authored-by: Amy Chen <[email protected]>
1 parent 17107a0 commit 78e5f7a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/styles/components/_Summary.scss

+21-2
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@
308308
border: 2px solid;
309309
padding: 12px;
310310
margin-bottom: 16px;
311+
margin-top: 16px;
312+
max-width: 360px;
311313
.panel-title {
312314
font-weight: 600;
313315
margin-top: 4px;
@@ -372,14 +374,31 @@
372374
}
373375
.panel.graph {
374376
flex-grow: 1;
375-
flex-basis: 100%;
377+
flex-basis: 65%;
376378
}
377379
}
378380
}
379381
@media (min-width: 1200px) {
380382
.sub-section__panel {
381383
.panel.graph {
382-
flex-basis: 60%;
384+
flex-basis: 57.5%;
385+
}
386+
}
387+
}
388+
@media (min-width: 1400px) {
389+
.sub-section__panel {
390+
.panel.graph {
391+
flex-basis: 50%;
392+
}
393+
}
394+
}
395+
@media (min-width: 1600px) {
396+
.sub-section__panel {
397+
.panel.graph {
398+
flex-basis: 25%;
399+
}
400+
.panel.overview {
401+
margin-left: 16px;
383402
}
384403
}
385404
}

0 commit comments

Comments
 (0)