a tool for shared writing and social publishing

hide alt text in ImageBlock if preview

+4 -4
+4 -4
components/Blocks/ImageBlock.tsx
··· 146 146 className={className} 147 147 /> 148 148 )} 149 - {altText !== undefined ? <ImageAlt entityID={props.value} /> : null} 149 + {altText !== undefined && !props.preview ? ( 150 + <ImageAlt entityID={props.value} /> 151 + ) : null} 150 152 </div> 151 153 ); 152 154 } ··· 186 188 setAltEditorOpen(altEditorOpen ? null : props.entityID) 187 189 } 188 190 > 189 - <ImageAltSmall 190 - fillColor={theme.colors["bg-page"]} 191 - /> 191 + <ImageAltSmall fillColor={theme.colors["bg-page"]} /> 192 192 </button> 193 193 } 194 194 >