Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ export default function MobileWorkflowSteps() {
size="small"
endIcon={hasMultipleOptions ? <ArrowDropDownIcon /> : undefined}
sx={{
whiteSpace: 'nowrap',
minWidth: 'auto',
textTransform: 'none',
// These per-breakpoint widths are fine-tuned to constrain the dropdown so
// its label truncates before it can overlap the parallelograms
maxWidth: { xs: '45vw', md: '20vw', lg: '25vw' },
}}
onClick={(e) => {
if (!hasMultipleOptions) return;
Expand All @@ -239,7 +242,19 @@ export default function MobileWorkflowSteps() {
}}
data-cy="passage-dropdown"
>
{isStepProgression ? passageRef(passage) : getWfLabel(currentLabel)}
<Box
component="span"
sx={{
minWidth: 0,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
{isStepProgression
? passageRef(passage)
: getWfLabel(currentLabel)}
</Box>
</Button>
<Menu
anchorEl={passageMenuAnchor}
Expand All @@ -255,6 +270,12 @@ export default function MobileWorkflowSteps() {
navigateToPassage(p);
setPassageMenuAnchor(null);
}}
sx={{
display: 'block',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
{passageRef(p)}
</MenuItem>
Expand All @@ -267,6 +288,12 @@ export default function MobileWorkflowSteps() {
handleSelect(step.id)();
setPassageMenuAnchor(null);
}}
sx={{
display: 'block',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
}}
>
{getWfLabel(step.label)}
</MenuItem>
Expand Down
Loading