diff --git a/src/components/image/image.tsx b/src/components/image/image.tsx index 647096d5..8ffc1bc6 100644 --- a/src/components/image/image.tsx +++ b/src/components/image/image.tsx @@ -178,6 +178,12 @@ export class Image const isHeightSpecified = !!this.height; const isWidthSpecified = !!this.width; + const height = isHeightSpecified + ? `calc(${this.height} + var(--margin-top, 0px) + var(--margin-bottom, 0px))` + : null; + const width = isWidthSpecified + ? `calc(${this.width} + var(--margin-left, 0px) + var(--margin-right, 0px))` + : null; return ( {body}