Skip to content

Commit 3ca0ddc

Browse files
committed
issue tdjsnelling#40: torrent list columns too small on mobile
1 parent 4ca7046 commit 3ca0ddc

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

client/components/TorrentList.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const TorrentList = ({
102102
)}
103103
</Text>
104104
),
105-
gridWidth: "2fr",
105+
gridWidth: "minmax(150px, 2fr)",
106106
},
107107
{
108108
header: `${getLocaleString("uploadCategory")}`,
@@ -118,7 +118,7 @@ const TorrentList = ({
118118
</Text>
119119
);
120120
},
121-
gridWidth: "1fr",
121+
gridWidth: "minmax(75px, 1fr)",
122122
},
123123
{
124124
header: `${getLocaleString("torrSeeders")}`,
@@ -184,7 +184,11 @@ const TorrentList = ({
184184
header: `${getLocaleString("torrUploaded")}`,
185185
accessor: "created",
186186
cell: ({ value }) => (
187-
<Text>{moment(value).format(`${getLocaleString("userUserSinceTime")}`)}</Text>
187+
<Text>
188+
{moment(value).format(
189+
`${getLocaleString("userUserSinceTime")}`
190+
)}
191+
</Text>
188192
),
189193
gridWidth: "140px",
190194
rightAlign: true,
@@ -235,7 +239,8 @@ const TorrentList = ({
235239
<ChevronsRight size={24} />
236240
</Button>
237241
<Text color="grey">
238-
{total.toLocaleString()} {getLocaleString("torrResults")}{getLocaleString("torrPage")} {page + 1} {getLocaleString("torrOf")}{" "}
242+
{total.toLocaleString()} {getLocaleString("torrResults")}{" "}
243+
{getLocaleString("torrPage")} {page + 1} {getLocaleString("torrOf")}{" "}
239244
{(maxPage + 1).toLocaleString()}
240245
</Text>
241246
</Box>

0 commit comments

Comments
 (0)