Skip to content

Commit b635034

Browse files
authored
Merge pull request #580 from fenilgandhi/add-failsafe-css
[fix] Adding CSS handling for overflowing elements in reference docs
2 parents f454fe9 + 4482ff9 commit b635034

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/assets/css/main.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,11 +2244,16 @@ iframe {
22442244
}
22452245

22462246
.cnv_div {
2247-
/* This ensures that all canvases from example code snippets are only
2248-
* the width of their actual canvases, rather than the width of
2249-
* the entire page, potentially obscuring the example code and
2250-
* preventing it from being selected. */
2251-
display: inline-block;
2247+
/* This ensures that all canvases and additional html elements (if any) from
2248+
* the example code snippets are only 100px wide rather than covering the
2249+
* entire page, which potentially obscures the example code. */
2250+
display: inline-flex;
2251+
flex-direction: column;
2252+
}
2253+
2254+
.cnv_div > * {
2255+
width: 100px;
2256+
height: auto;
22522257
}
22532258

22542259

0 commit comments

Comments
 (0)