diff --git a/web-ui/src/components/reviews/TeamReviews.jsx b/web-ui/src/components/reviews/TeamReviews.jsx index 4fa1b0e6b..d1fa34b88 100644 --- a/web-ui/src/components/reviews/TeamReviews.jsx +++ b/web-ui/src/components/reviews/TeamReviews.jsx @@ -956,59 +956,6 @@ const TeamReviews = ({ onBack, periodId }) => {
{period?.name ?? ''} Team Reviews - {period && isAdmin && ( -
- {canUpdate && ( - - - {period.reviewStatus === ReviewStatus.OPEN ? ( - - ) : ( - - )} - - - )} - - {selectHasDeleteReviewPeriodPermission(state) && ( - - - - - - )} - - {approvalMode && ( - setShowAll(b => !b)} - /> - } - label="Show All" - sx={{ marginLeft: '0.5rem' }} - /> - )} -
- )}
{ )} {approvalMode && ( -
- setNameQuery(event.target.value)} - InputProps={{ - endAdornment: ( - - - - ) - }} - /> - {canUpdate && ( -
- - +
+ {/* Wrapper div for TextField and Switch */} +
+ setNameQuery(event.target.value)} + InputProps={{ + endAdornment: ( + + + + ) + }} + style={{ flexGrow: 1, maxWidth: '400px' }} + /> + {/* Add the Switch right next to the TextField */} + {period && isAdmin && ( + setShowAll(b => !b)} + /> + } + label="Show All" + sx={{ marginLeft: '0.5rem' }} + /> + )}
- )} -
+ {/* Button aligned to the right */} + {canUpdate && ( +
+ + +
+ )} +
)} {canUpdate && (