Skip to content

Commit 43117da

Browse files
kevinortiz43claude
andcommitted
web/communities: wrap mobile breadcrumb instead of scrolling
Let the community breadcrumb wrap whole crumbs onto the next line on mobile rather than horizontally scrolling, so a long current-community name is never truncated and the "Select area" dropdown stays visible. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e92d5dc commit 43117da

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

app/web/features/communities/CommunityPage/CommunityPageSubHeader.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,11 @@ const StyledBreadcrumbs = styled(Breadcrumbs)(({ theme }) => ({
3232
justifyContent: "flex-start",
3333
},
3434
[theme.breakpoints.down("sm")]: {
35-
width: "100%",
3635
fontSize: theme.typography.body2.fontSize,
3736
"& .MuiTypography-root, & .MuiLink-root, & .MuiButton-root": {
3837
fontSize: "inherit",
3938
},
40-
// Keep the whole chain on one line; scroll horizontally instead of wrapping
41-
// when it's wider than the screen (fits without scrolling at typical widths).
42-
"& ol": {
43-
flexWrap: "nowrap",
44-
overflowX: "auto",
45-
scrollbarWidth: "none",
46-
"&::-webkit-scrollbar": { display: "none" },
47-
},
39+
// Wrap a whole crumb to the next line instead of truncating a name.
4840
"& li": {
4941
flexShrink: 0,
5042
whiteSpace: "nowrap",

0 commit comments

Comments
 (0)