fix: listen to imagevault width if no width is given in cs
This commit is contained in:
@@ -347,7 +347,9 @@ export const renderOptions: RenderOptions = {
|
|||||||
const image = insertResponseToImageVaultAsset(attrs)
|
const image = insertResponseToImageVaultAsset(attrs)
|
||||||
const alt = image.meta.alt ?? image.title
|
const alt = image.meta.alt ?? image.title
|
||||||
|
|
||||||
const width = parseInt(attrs.width.replaceAll("px", ""))
|
const width = attrs.width
|
||||||
|
? parseInt(attrs.width.replaceAll("px", ""))
|
||||||
|
: image.dimensions.width
|
||||||
const props = extractPossibleAttributes(attrs)
|
const props = extractPossibleAttributes(attrs)
|
||||||
return (
|
return (
|
||||||
<section key={node.uid}>
|
<section key={node.uid}>
|
||||||
|
|||||||
Reference in New Issue
Block a user