From 3a4a5b6c0ae9500c77e1332c92d31f20bb6fdaae 2015-03-29 21:01:33 From: Min RK Date: 2015-03-29 21:01:33 Subject: [PATCH] calc max-width for Firefox account for prompt width --- diff --git a/IPython/html/static/notebook/less/outputarea.less b/IPython/html/static/notebook/less/outputarea.less index 803de45..f9a7ac2 100644 --- a/IPython/html/static/notebook/less/outputarea.less +++ b/IPython/html/static/notebook/less/outputarea.less @@ -107,7 +107,7 @@ div.output_subarea { padding: @code_padding; .box-flex1(); // appears to be needed for max-width in children to mean anything on Firefox: - max-width: 100%; + max-width: calc(~"100% - 14ex"); } /* The rest of the output_* classes are for special styling of the different diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css index a498c6a..e13223a 100644 --- a/IPython/html/static/style/ipython.min.css +++ b/IPython/html/static/style/ipython.min.css @@ -890,7 +890,7 @@ div.output_subarea { box-flex: 1; /* Modern browsers */ flex: 1; - max-width: 100%; + max-width: calc(100% - 14ex); } /* The rest of the output_* classes are for special styling of the different output types */ diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index f04ac96..e14bbe3 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -9682,7 +9682,7 @@ div.output_subarea { box-flex: 1; /* Modern browsers */ flex: 1; - max-width: 100%; + max-width: calc(100% - 14ex); } /* The rest of the output_* classes are for special styling of the different output types */