Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64faef0

Browse files
committed
Use max-width to make content more responsive.
1 parent df1cd26 commit 64faef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def color_block(color):
745745
'title="' + self.name + '" ' +
746746
'style="border: 1px solid #555;" ' +
747747
'src="data:image/png;base64,' + png_base64 + '"></div>' +
748-
'<div style="vertical-align: middle; width: 402px; ' +
748+
'<div style="vertical-align: middle; max-width: 402px; ' +
749749
'display: flex; justify-content: space-between;">' +
750750
'<div style="float: left;">' +
751751
color_block(self.get_under()) + ' under' +

0 commit comments

Comments
 (0)