8000 Backport PR #21129: Fix decenter of image in gallery thumbnails · matplotlib/matplotlib@275334c · GitHub
[go: up one dir, main page]

Skip to content

Commit 275334c

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #21129: Fix decenter of image in gallery thumbnails
1 parent 57d7241 commit 275334c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/_static/mpl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ does not float with it.
213213
margin: 5px 2px;
214214
}
215215

216+
/* workaround: the default padding decenters the image inside the frame */
217+
.sphx-glr-thumbcontainer .figure {
218+
padding: 0;
219+
}
216220

217221
table.property-table th,
218222
table.property-table td {

0 commit comments

Comments
 (0)
0