style(downloads): make game actions buttons the same size in smaller devices and crop repack title

This commit is contained in:
rickxz 2024-06-04 16:16:21 -03:00
parent 4ea04b3dbc
commit 76fc992d65
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>
</>
);