render() {
return (
<div class="position-relative mb-2">
- {this.props.banner && <PictrsImage src={this.props.banner} alt="" />}
+ {this.props.banner && (
+ <PictrsImage src={this.props.banner} banner alt="" />
+ )}
{this.props.icon && (
<PictrsImage
src={this.props.icon}
src: string;
alt?: string;
icon?: boolean;
+ banner?: boolean;
thumbnail?: boolean;
nsfw?: boolean;
iconOverlay?: boolean;
loading="lazy"
className={`
${!this.props.icon && !this.props.iconOverlay && "img-fluid "}
+ ${this.props.banner && "banner "}
${
- this.props.thumbnail && !this.props.icon
+ this.props.thumbnail && !this.props.icon && !this.props.banner
? "thumbnail rounded "
: "img-expanded "
}