Skip to content

Commit 90e0de2

Browse files
committed
Fix cropping of flowchart
1 parent 8a3da6a commit 90e0de2

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

static/css/homepage.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@
9696
}
9797

9898
.preview-image {
99-
width: 150%;
100-
max-width: 150%;
10199
display: block;
102-
content: url('/static/images/misc/preview.png');
103-
position: relative;
104-
left: 50%;
105-
transform: translateX(-50%);
100+
height: auto;
101+
width: 140%;
102+
max-width: 95vw;
103+
margin: 1rem 0 0 0;
104+
margin-left: calc((100% - 140%) / 2);
106105
}
107106

107+
108108
:root[data-theme="dark"] .preview-image {
109109
content: url('/static/images/misc/preview_light.png');
110110
}
@@ -243,6 +243,7 @@
243243
.preview-image {
244244
width: 100%;
245245
max-width: 100%;
246+
margin-left: 0;
246247
}
247248

248249
.h2columns > div {

0 commit comments

Comments
 (0)