Browse Source

lint

feature/pictrs-v2.5
DashEightMate 11 months ago
parent
commit
5ef0d3c503
  1. 3
      src/components/PictrsImage.tsx
  2. 11
      src/components/post-listing.tsx

3
src/components/PictrsImage.tsx

@ -72,7 +72,8 @@ export function PictrsImage(props) {
${props.iconOverlay && 'ml-2 mb-0 rounded-circle avatar-overlay '}
${props.pushup && 'avatar-pushup '}
${props.class}
`}>
`}
>
<source src={props.src} type="video/mp4" />
</video>
);

11
src/components/post-listing.tsx

@ -362,8 +362,7 @@ const MobilePostListing = ({
<Block position="relative" my={1}>
<div
className={`embed-responsive embed-responsive-16by9 ${
showNSFW() ? 'img-blur-card'
: ''
showNSFW() ? 'img-blur-card' : ''
}`}
>
<PictrsImage
@ -374,12 +373,12 @@ const MobilePostListing = ({
class="rounded img-fluid"
/>
</div>
{showNSFW() &&
{showNSFW() && (
<div
className="capture-overlay"
onClick={() => setImageExpanded(true)}
/>
}
)}
{!showBody && !imageExpanded && <MobilePostIcon post={post} />}
</Block>
);
@ -392,12 +391,12 @@ const MobilePostListing = ({
__html: post.embed_html,
}}
/>
{showNSFW() &&
{showNSFW() && (
<div
className="capture-overlay"
onClick={() => setImageExpanded(true)}
/>
}
)}
</Block>
);
} else if (post.url && post.embed_title) {

Loading…
Cancel
Save