Skip to content

Commit b0e748f

Browse files
committed
Increased video size in bite transfer
1 parent 71c8b82 commit b0e748f

File tree

1 file changed

+55
-28
lines changed

1 file changed

+55
-28
lines changed

feedingwebapp/src/Pages/Home/MealStates/BiteSelection.jsx

Lines changed: 55 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -414,27 +414,6 @@ const BiteSelection = (props) => {
414414
const fullPageView = useCallback(() => {
415415
return (
416416
<>
417-
{/**
418-
* In addition to selecting their desired food item, the user has two
419-
* other options on this page:
420-
* - If their desired food item is not visible on the plate, they can
421-
* decide to teleoperate the robot until it is visible.
422-
* - Instead of selecting their next bite, the user can indicate that
423-
* they are done eating.
424-
*/}
425-
<View
426-
style={{
427-
flex: 2,
428-
flexDirection: 'row',
429-
justifyContent: 'center',
430-
alignItems: 'center',
431-
width: '100%'
432-
}}
433-
>
434-
<Button className='doneButton' style={{ fontSize: textFontSize, marginTop: '0', marginBottom: '0' }} onClick={doneEatingClicked}>
435-
✅ Done Eating
436-
</Button>
437-
</View>
438417
{/**
439418
* Below the buttons, one half of the screen will present the video feed.
440419
* The other half will present the action status text, the food buttons
@@ -443,15 +422,15 @@ const BiteSelection = (props) => {
443422
*/}
444423
<View
445424
style={{
446-
flex: 17,
425+
flex: 20,
447426
flexDirection: dimension,
448427
alignItems: 'center',
449428
width: '100%'
450429
}}
451430
>
452431
<View
453432
style={{
454-
flex: 1,
433+
flex: 3,
455434
flexDirection: 'column',
456435
alignItems: 'center',
457436
justifyContent: 'center',
@@ -472,7 +451,7 @@ const BiteSelection = (props) => {
472451
</View>
473452
<View
474453
style={{
475-
flex: 9,
454+
flex: 13,
476455
alignItems: 'center',
477456
justifyContent: 'center',
478457
width: '100%',
@@ -484,7 +463,7 @@ const BiteSelection = (props) => {
484463
</View>
485464
<View
486465
style={{
487-
flex: 1,
466+
flex: 2,
488467
flexDirection: 'column',
489468
justifyContent: 'center',
490469
alignItems: 'center',
@@ -505,7 +484,7 @@ const BiteSelection = (props) => {
505484
</View>
506485
<View
507486
style={{
508-
flex: 9,
487+
flex: 12,
509488
alignItems: 'center',
510489
justifyContent: 'center',
511490
width: '100%',
@@ -526,14 +505,62 @@ const BiteSelection = (props) => {
526505
</View>
527506
<View
528507
style={{
529-
flex: 4,
508+
flex: 3,
509+
flexDirection: 'row',
530510
alignItems: 'center',
531511
justifyContent: 'center',
532512
width: '100%',
533513
height: '100%'
534514
}}
535515
>
536-
{skipAcquisisitionButton()}
516+
<View
517+
style={{
518+
flex: 2,
519+
alignItems: 'center',
520+
justifyContent: 'center',
521+
width: '100%',
522+
height: '100%'
523+
}}
524+
>
525+
{skipAcquisisitionButton()}
526+
</View>
527+
<View
528+
style={{
529+
flex: 2,
530+
alignItems: 'center',
531+
justifyContent: 'center',
532+
width: '100%',
533+
height: '100%'
534+
}}
535+
>
536+
<View
537+
style={{
538+
flex: 1,
539+
alignItems: 'center',
540+
justifyContent: 'center',
541+
width: '100%',
542+
height: '100%'
543+
}}
544+
></View>
545+
<View
546+
style={{
547+
flex: 4,
548+
alignItems: 'center',
549+
justifyContent: 'center',
550+
width: '100%',
551+
height: '100%'
552+
}}
553+
>
554+
<Button
555+
className='doneButton mx-2 btn-huge'
556+
size='lg'
557+
style={{ fontSize: textFontSize, marginTop: '0', marginBottom: '0', height: '90%' }}
558+
onClick={doneEatingClicked}
559+
>
560+
✅ Done Eating
561+
</Button>
562+
</View>
563+
</View>
537564
</View>
538565
{props.debug ? (
539566
<View

0 commit comments

Comments
 (0)