We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b9ee1 commit 2b25df1Copy full SHA for 2b25df1
src/packages/frontend/jupyter/_jupyter.sass
@@ -9,7 +9,6 @@
9
.cocalc-jupyter-rendered
10
img
11
max-width: 100%
12
- height: auto
13
table
14
border: none
15
border-collapse: collapse
src/packages/frontend/jupyter/output-messages/image.tsx
@@ -41,12 +41,12 @@ export const Image: React.FC<ImageProps> = React.memo((props: ImageProps) => {
41
function render_image(src, on_error?): JSX.Element {
42
const props = {
43
src,
44
- width: width,
45
- height: height,
+ width,
+ height,
46
};
47
props["style"] = {
48
maxWidth: "100%",
49
- height: "auto",
+ height: props.height ?? "auto",
50
} as React.CSSProperties;
51
if (on_error != null) {
52
props["onError"] = on_error;
0 commit comments