Skip to content

Commit c5e1e41

Browse files
Merge pull request #225 from akankshat05/books-preview
Fix: Books preview
2 parents 84fbe81 + bbd7fd0 commit c5e1e41

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

components/QueueTable.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ const ShowUploadQueue = (props) => {
4747
container: {
4848
maxHeight: 330,
4949
},
50-
id: {
51-
cursor: "pointer",
52-
color: "#36c",
53-
},
5450
toolbar: {
5551
marginTop: "8px",
5652
fontSize: "12px",
@@ -79,7 +75,7 @@ const ShowUploadQueue = (props) => {
7975
minWidth: 50,
8076
align: "left",
8177
format: (value) => (
82-
<a sx={styles.id} onClick={() => onClick(value)}>
78+
<a style={{ cursor: "pointer" }} onClick={() => onClick(value)}>
8379
{value}
8480
</a>
8581
),
@@ -90,7 +86,7 @@ const ShowUploadQueue = (props) => {
9086
minWidth: 300,
9187
align: "left",
9288
format: (value, label) => (
93-
<a sx={styles.id} onClick={() => onClick(value)}>
89+
<a style={{ cursor: "pointer" }} onClick={() => onClick(value)}>
9490
{label}
9591
</a>
9692
),

components/ShowJobInformation.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,21 @@ const ShowJobInformation = (props) => {
1818
const styles = {
1919
root: {
2020
maxWidth: 365,
21+
height: "fit-content",
22+
},
23+
cardContentContainer: {
24+
height: "200px",
25+
overflow: "auto",
2126
},
2227
cardContainer: {
2328
display: "flex",
2429
justifyContent: "center",
2530
alignContent: "center",
2631
marginTop: "0px",
2732
},
33+
uploadProgress: {
34+
marginLeft: "16.5px",
35+
},
2836
button: {
2937
fontSize: "11px",
3038
},
@@ -86,17 +94,27 @@ const ShowJobInformation = (props) => {
8694
title={data.title}
8795
sx={styles.cardImage}
8896
/>
89-
<CardContent>
97+
<CardContent
98+
sx={
99+
data.description && data.description.length > 0
100+
? styles.cardContentContainer
101+
: null
102+
}
103+
>
90104
<Typography gutterBottom variant="h2">
91105
{data.title}
92106
</Typography>
93107
<Typography variant="h5" color="textSecondary">
94108
{data.description}
95109
</Typography>
96-
<Typography variant="h5" color="textSecondary">
97-
<strong>Upload Progress:</strong> {progress}%
98-
</Typography>
99110
</CardContent>
111+
<Typography
112+
variant="h5"
113+
color="textSecondary"
114+
sx={styles.uploadProgress}
115+
>
116+
<strong>Upload Progress:</strong> {progress}%
117+
</Typography>
100118
</CardActionArea>
101119

102120
<CardActions>

0 commit comments

Comments
 (0)