tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
29
pulls
pipelines
hide alt text in ImageBlock if preview
schlage.town
6 months ago
4164cbaa
24e51797
+4
-4
1 changed file
expand all
collapse all
unified
split
components
Blocks
ImageBlock.tsx
+4
-4
components/Blocks/ImageBlock.tsx
···
146
146
className={className}
147
147
/>
148
148
)}
149
149
-
{altText !== undefined ? <ImageAlt entityID={props.value} /> : null}
149
149
+
{altText !== undefined && !props.preview ? (
150
150
+
<ImageAlt entityID={props.value} />
151
151
+
) : null}
150
152
</div>
151
153
);
152
154
}
···
186
188
setAltEditorOpen(altEditorOpen ? null : props.entityID)
187
189
}
188
190
>
189
189
-
<ImageAltSmall
190
190
-
fillColor={theme.colors["bg-page"]}
191
191
-
/>
191
191
+
<ImageAltSmall fillColor={theme.colors["bg-page"]} />
192
192
</button>
193
193
}
194
194
>