Merge branch 'main' of github.com:hydralauncher/hydra into feature/adding-flame-animation

This commit is contained in:
Chubby Granny Chaser 2024-09-21 21:19:08 +01:00
commit ddd6ff7dbe
No known key found for this signature in database
27 changed files with 792 additions and 42 deletions

View file

@ -6,7 +6,7 @@
<title>Hydra</title>
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: local: https://*.cloudfront.net https://*.s3.amazonaws.com https://steamcdn-a.akamaihd.net https://shared.akamai.steamstatic.com https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com; media-src 'self' local: data: https://steamcdn-a.akamaihd.net https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com https://shared.akamai.steamstatic.com https://video.akamai.steamstatic.com;"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: local: *; media-src 'self' local: data: *;"
/>
</head>
<body style="background-color: #1c1c1c">

View file

@ -19,6 +19,7 @@ export const gallerySliderMedia = style({
flexGrow: "0",
transition: "translate 0.3s ease-in-out",
borderRadius: "4px",
alignSelf: "center",
});
export const gallerySliderAnimationContainer = style({
@ -60,7 +61,6 @@ export const mediaPreviewButton = recipe({
base: {
cursor: "pointer",
width: "20%",
height: "20%",
display: "block",
flexShrink: "0",
flexGrow: "0",
@ -84,7 +84,6 @@ export const mediaPreviewButton = recipe({
export const mediaPreview = style({
width: "100%",
height: "100%",
display: "flex",
});

View file

@ -128,6 +128,7 @@ export function GallerySlider() {
src={image.path_full}
style={{ translate: `${-100 * mediaIndex}%` }}
alt={t("screenshot", { number: i + 1 })}
loading="lazy"
/>
))}