Merge pull request #1892 from hydralauncher/fix/downloads-ui

Fix: navigation and styles in download page
This commit is contained in:
Chubby Granny Chaser
2025-12-10 18:12:05 +00:00
committed by GitHub
2 changed files with 25 additions and 8 deletions

View File

@@ -108,16 +108,11 @@
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
transition: opacity 0.2s ease; transition: scale 0.2s ease;
outline: none; outline: none;
&:hover { &:hover {
opacity: 0.8; scale: 1.05;
}
&:focus,
&:focus-visible {
outline: none;
} }
} }
@@ -411,6 +406,21 @@
gap: calc(globals.$spacing-unit / 1); gap: calc(globals.$spacing-unit / 1);
} }
&__simple-title-button {
background: none;
border: none;
padding: 0;
cursor: pointer;
text-align: left;
width: 100%;
transition: opacity 0.2s ease;
&:focus,
&:focus-visible {
outline: none;
}
}
&__simple-title { &__simple-title {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;

View File

@@ -436,6 +436,7 @@ export function DownloadGroup({
seedingStatus, seedingStatus,
}: Readonly<DownloadGroupProps>) { }: Readonly<DownloadGroupProps>) {
const { t } = useTranslation("downloads"); const { t } = useTranslation("downloads");
const navigate = useNavigate();
const userPreferences = useAppSelector( const userPreferences = useAppSelector(
(state) => state.userPreferences.value (state) => state.userPreferences.value
@@ -872,7 +873,13 @@ export function DownloadGroup({
</div> </div>
<div className="download-group__simple-info"> <div className="download-group__simple-info">
<h3 className="download-group__simple-title">{game.title}</h3> <button
type="button"
onClick={() => navigate(buildGameDetailsPath(game))}
className="download-group__simple-title-button"
>
<h3 className="download-group__simple-title">{game.title}</h3>
</button>
<div className="download-group__simple-meta"> <div className="download-group__simple-meta">
<div className="download-group__simple-meta-row"> <div className="download-group__simple-meta-row">
<Badge>{DOWNLOADER_NAME[game.download!.downloader]}</Badge> <Badge>{DOWNLOADER_NAME[game.download!.downloader]}</Badge>