Fix position of lightbox arrows for a video
This commit is contained in:
parent
759c61d06e
commit
99011b0a56
2 changed files with 0 additions and 15 deletions
|
@ -484,7 +484,6 @@ export function Lightbox({
|
|||
const caption = attachment?.caption;
|
||||
|
||||
let content: JSX.Element;
|
||||
let hasControls = false;
|
||||
if (!contentType) {
|
||||
content = <>{children}</>;
|
||||
} else {
|
||||
|
@ -551,8 +550,6 @@ export function Lightbox({
|
|||
<source src={objectURL} />
|
||||
</video>
|
||||
);
|
||||
|
||||
hasControls = true;
|
||||
} else if (isUnsupportedImageType || isUnsupportedVideoType) {
|
||||
content = (
|
||||
<button
|
||||
|
@ -590,7 +587,6 @@ export function Lightbox({
|
|||
<div
|
||||
className={classNames('Lightbox Lightbox__container', {
|
||||
'Lightbox__container--zoom': isZoomed,
|
||||
'Lightbox__container--has-controls': hasControls,
|
||||
})}
|
||||
onClick={(event: React.MouseEvent<HTMLDivElement>) => {
|
||||
event.stopPropagation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue