diff --git a/web/src/layout/package/screenshots/Modal.module.css b/web/src/layout/package/screenshots/Modal.module.css index 327872644..4c4552e48 100644 --- a/web/src/layout/package/screenshots/Modal.module.css +++ b/web/src/layout/package/screenshots/Modal.module.css @@ -15,8 +15,11 @@ } .image { + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + position: relative; border: 3px solid var(--color-black-90); - object-fit: contain; /* Avoid shrink */ } .externalLink { @@ -25,8 +28,13 @@ top: -1px; } -.dotBtn:not(.disabled) { +.disabledDotBtn { color: #fcfcfc !important; + opacity: 1 !important; +} + +.dotBtn { + color: #6c757d !important; } .disabled { diff --git a/web/src/layout/package/screenshots/Modal.tsx b/web/src/layout/package/screenshots/Modal.tsx index 28f472df0..6eaac0c03 100644 --- a/web/src/layout/package/screenshots/Modal.tsx +++ b/web/src/layout/package/screenshots/Modal.tsx @@ -127,18 +127,20 @@ const ScreenshotsModal = (props: Props) => { { 'pb-3': isUndefined(props.screenshots[activeScreenshot].title) } )} > - {`Screenshot: setOnLoadedImage(true)} - onError={() => { - setOnLoadedImage(true); - setError(true); - }} - aria-hidden="true" - /> +
+ {`Screenshot: setOnLoadedImage(true)} + onError={() => { + setOnLoadedImage(true); + setError(true); + }} + aria-hidden="true" + /> +
{!isUndefined(props.screenshots[activeScreenshot].title) && ( @@ -169,9 +171,13 @@ const ScreenshotsModal = (props: Props) => { {Array.from(Array(props.screenshots.length).keys()).map((idx: number) => (