Skip to content

Commit 29920ba

Browse files
authored
Fix-task-responsiveness (#174)
* update jon snow (#171) * fix task responsiveness
1 parent 394ffbb commit 29920ba

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

How-To-Launch-SMART-on-FHIR-Apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ VITE_SMART_LAUNCH_URL = https://smartlauncher.interop.community/sample-app/launc
3333
1. Start request-generator normally and go to `http://localhost:3000/`. Click the "Authorize" button.
3434
2. Start rems-admin normally.
3535
3. In request-generator, click the "Select a Patient" button.
36-
4. Select Jon Snow (id: 130803).
36+
4. Select John Snow (id: 130803).
3737
5. Click the "Launch SMART on FHIR app" button. This opens the SMART on FHIR app launch page provided as values to the `VITE_SMART_LAUNCH_URL` and `SMART_ENDPOINT` environment variables.
3838
6. Click the "Authorize" button.
3939
7. You should see the expected SMART on FHIR app launch properly.

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)