Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add captions for images in Guides

Damian Legawieca1cc1cadc7ac
diff --git a/guides/gatsby-config.js b/guides/gatsby-config.js
index 259ef53de2..f1b42e4e46 100644
--- a/guides/gatsby-config.js
+++ b/guides/gatsby-config.js
@@ -67,9 +67,7 @@ module.exports = {
quality: 100,
maxWidth: 1200,
linkImagesToOriginal: false,
- showCaptions: true,
- markdownCaptions: true,
- wrapperStyle: "margin-top: 1em;margin-bottom: 1em"
+ showCaptions: true
}
},
{
diff --git a/guides/src/styles/app.css b/guides/src/styles/app.css
index f39ea0916e..f91f659c05 100644
--- a/guides/src/styles/app.css
+++ b/guides/src/styles/app.css
@@ -179,7 +179,11 @@ td[kind='field'] {
height: 100%;
}
-.gatsby-resp-image-wrapper {
- margin-top: 2rem;
- margin-bottom: 2rem;
+.gatsby-resp-image-figure {
+ margin: 2em 0;
+}
+
+.gatsby-resp-image-figcaption {
+ color: gray;
+ text-align: center;
}