Skip to content

Commit 4444dd5

Browse files
Adjust max-height for output cells with images
1 parent d1a539a commit 4444dd5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

myst_nb/static/mystnb.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ div.cell.tag_scroll-input div.cell_input {
295295
}
296296

297297
div.cell.config_scroll_outputs div.cell_output:has(img) {
298-
max-height: unset;
298+
/* If the output cell has image(s), allow it to take 90% of viewport height
299+
but still bounded between 24em and 60em */
300+
max-height: clamp(24em, 90vh, 60em);
299301
}
300302

301303
/* Custom scrollbars */

0 commit comments

Comments
 (0)