Skip to content

Commit

Permalink
Merge pull request #568 from rickxz/style(downloads)/improve-responsi…
Browse files Browse the repository at this point in the history
…ve-design

style(downloads): make game actions buttons the same size in smaller devices and crop repack title
  • Loading branch information
thegrannychaseroperation authored Jun 4, 2024
2 parents 4ea04b3 + 76fc992 commit c7ae4db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/renderer/src/pages/downloads/downloads.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export const downloadTitle = style({
},
});

export const repackTitle = style({
maxHeight: "40px",
overflow: "hidden",
});

export const downloaderName = style({
color: "#c0c1c7",
fontSize: "10px",
Expand Down Expand Up @@ -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`,
});

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/downloads/downloads.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
</>
);
Expand Down

0 comments on commit c7ae4db

Please sign in to comment.