Skip to content

Commit 289e21b

Browse files
Adjust visualization to better fill width and height
1 parent 1cd54c1 commit 289e21b

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

public/styles.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,20 +1186,26 @@ body {
11861186
overflow: hidden;
11871187
max-height: none;
11881188
display: flex;
1189-
align-items: center;
1190-
justify-content: center;
1189+
align-items: stretch;
1190+
justify-content: stretch;
11911191
}
11921192
.viz-img-wrap img {
11931193
width: 100%;
11941194
max-width: 100%;
11951195
max-height: none;
1196-
height: auto;
1197-
object-fit: contain;
1196+
height: min(78vh, 760px);
1197+
object-fit: cover;
11981198
object-position: center;
11991199
border-radius: 16px;
12001200
display: block;
12011201
}
12021202

1203+
@media (max-width: 600px) {
1204+
.viz-img-wrap img {
1205+
height: min(52vh, 420px);
1206+
}
1207+
}
1208+
12031209
.viz-grid {
12041210
display: grid;
12051211
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

0 commit comments

Comments
 (0)