diff --git a/src/components/RichFigure.vue b/src/components/RichFigure.vue index b69ab21..6c7a3d6 100644 --- a/src/components/RichFigure.vue +++ b/src/components/RichFigure.vue @@ -9,10 +9,16 @@ export default { name: "rich-figure", props: { - imgSrc: { type: String, required: true }, + imgSrc: { + type: String, + required: true + }, + caption: { + type: String, + required: true + }, imgPos: String, - imgW: String, - caption: { type: String, required: true } + imgW: String } }; @@ -37,6 +43,7 @@ figure { } img { + display: block; width: 100%; } } @@ -54,7 +61,7 @@ figure { &.right { float: right; - margin: 0 0 1em 1em; + margin: 0 0 0.375em 0.75em; } } }