mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
add space between images inside preview and removed blank space of image preview
This commit is contained in:
@@ -110,7 +110,9 @@ export function GallerySlider({ gameDetails }: GallerySliderProps) {
|
||||
}
|
||||
className={`${styles.gallerySliderMediaPreview} ${mediaIndex === i + (gameDetails.movies ? gameDetails.movies.length : 0) ? styles.gallerySliderMediaPreviewActive : ""}`}
|
||||
src={image.path_full}
|
||||
style={{ translate: `${-85 * mediaIndex}%` }}
|
||||
style={{
|
||||
translate: `${mediaIndex >= mediaCount - 3 ? -85 * (mediaCount - 4) : -85 * mediaIndex}%`,
|
||||
}}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
|
||||
@@ -135,6 +135,7 @@ export const gallerySliderMediaPreview = style({
|
||||
flexShrink: 0,
|
||||
flexGrow: 0,
|
||||
opacity: 0.3,
|
||||
paddingRight: "0.5rem",
|
||||
transition: "translate 300ms ease-in-out",
|
||||
":hover": {
|
||||
opacity: 1,
|
||||
|
||||
Reference in New Issue
Block a user