Skip to content

Commit 579565f

Browse files
committed
fix task responsiveness
1 parent c00df66 commit 579565f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/components/RequestDashboard/TasksSection.jsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ const TasksSection = props => {
377377
return (
378378
<Fragment key={task.id}>
379379
<Grid item xs={12} lg={6}>
380-
<Grid className={classes.taskTabMain} item container xs={12}>
380+
<Grid className={classes.taskTabMain} item container xs={12} spacing={2}>
381381
<Grid className={classes.taskTabHeader} item xs={2}>
382382
{`Task ID: ${task.id}`}
383383
</Grid>
@@ -401,8 +401,9 @@ const TasksSection = props => {
401401
<Grid className={classes.taskTabOwner} item xs={6}>
402402
{ownerText}
403403
</Grid>
404-
<Grid className={classes.taskTabButton} item xs={3}>
404+
<Grid className={classes.taskTabButton} item xs={12} sm={6} md={3}>
405405
<Button
406+
fullWidth
406407
variant="outlined"
407408
onClick={event => {
408409
handleMenuClick(event, task);
@@ -412,8 +413,9 @@ const TasksSection = props => {
412413
Status
413414
</Button>
414415
</Grid>
415-
<Grid className={classes.taskTabButton} item xs={2}>
416+
<Grid className={classes.taskTabButton} item xs={12} sm={6} md={2}>
416417
<Button
418+
fullWidth
417419
variant="outlined"
418420
onClick={event => {
419421
handleAssignMenuClick(event, task);
@@ -423,11 +425,9 @@ const TasksSection = props => {
423425
Assign
424426
</Button>
425427
</Grid>
426-
<Grid item xs={1}>
427-
{/*spacer*/}
428-
</Grid>
429-
<Grid className={classes.taskTabButton} item xs={3}>
428+
<Grid className={classes.taskTabButton} item xs={12} sm={6} md={3}>
430429
<Button
430+
fullWidth
431431
variant="contained"
432432
color="error"
433433
startIcon={<DeleteIcon />}
@@ -438,8 +438,9 @@ const TasksSection = props => {
438438
Delete
439439
</Button>
440440
</Grid>
441-
<Grid className={classes.taskTabButton} item xs={3}>
441+
<Grid className={classes.taskTabButton} item xs={12} sm={6} md={4}>
442442
<Button
443+
fullWidth
443444
variant="contained"
444445
onClick={() => {
445446
launchTask(task);

0 commit comments

Comments
 (0)