Merge pull request #568 from rickxz/style(downloads)/improve-responsive-design
Some checks are pending
Release / build (ubuntu-latest) (push) Waiting to run
Release / build (windows-latest) (push) Waiting to run

style(downloads): make game actions buttons the same size in smaller devices and crop repack title
This commit is contained in:
Chubby Granny Chaser 2024-06-04 21:53:16 +01:00 committed by GitHub
commit c7ae4db79d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -21,6 +21,11 @@ export const downloadTitle = style({
},
});
export const repackTitle = style({
maxHeight: "40px",
overflow: "hidden",
});
export const downloaderName = style({
color: "#c0c1c7",
fontSize: "10px",
@ -112,14 +117,16 @@ export const downloadDetails = style({
export const downloadRightContent = style({
display: "flex",
alignItems: "center",
padding: `${SPACING_UNIT * 2}px`,
flex: "1",
gap: `${SPACING_UNIT}px`,
});
export const downloadActions = style({
height: "fit-content",
display: "flex",
alignItems: "center",
alignItems: "stretch",
gap: `${SPACING_UNIT}px`,
});

View file

@ -101,7 +101,7 @@ export function Downloads() {
if (game.progress === 1) {
return (
<>
<p>{game.repack?.title}</p>
<p className={styles.repackTitle}>{game.repack?.title}</p>
<p>{t("completed")}</p>
</>
);