Browse Source

Merge pull request #542 from Automattic/fix/affinity-gallery-image-display

Affinity: Fix Gutenberg gallery block when images link to media files
Allan Cole 6 years ago
parent
commit
5f46ae69b0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      affinity/blocks.css

+ 4 - 0
affinity/blocks.css

@@ -52,6 +52,10 @@ p.has-drop-cap:not(:focus)::first-letter {
 	margin-left: auto;
 }
 
+.wp-block-gallery.is-cropped .blocks-gallery-item a {
+	overflow: hidden;
+}
+
 /* Quote */
 
 .wp-block-quote cite {