You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-08-07] [$250] Web - Inbox - Inbox filters overlap with each other when filter word is long #93975
Version Number: 9.4.15-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#92146 Email or phone of affected tester (no customers):sdjnoisdjdosijsonssjo@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Left Hand Navigation (LHN)
Action Performed:
Precondition:
App language is Polski.
Go to staging.new.expensify.com
Go to Inbox.
Expected Result:
Inbox filters will not overlap with each other when filter word is long.
Actual Result:
Inbox filters overlap with each other when filter word is long.
The selection pill does not cover the entire word when selected.
Root Cause: The Inbox tab labels overflow their slots in long-word locales (e.g. Polish "Zadania do wykonania") because the tab label container never shrinks, so numberOfLines={1} truncation never kicks in.
What is the root cause of that problem?
The Inbox filter row renders via InboxTabSelector with equalWidth, so each of the 3 tabs is given flex: 1 — exactly ⅓ of the (narrow) LHN width — via TabSelectorItem.tsx:62.
Inside each button, the label is wrapped in a View that only sets maxWidth and has no flexShrink (TabLabel.tsx:29):
In React Native / Yoga, the default flexShrink is 0 (unlike web CSS, where it is 1). So in a long-word locale the label View keeps its full intrinsic content width instead of shrinking to the button's ⅓ slot. Because the View never shrinks, the numberOfLines={1} Text never gets a bounded width to truncate against, and the text spills past the button boundary.
This explains both reported symptoms:
Filters overlap — the long label overflows its ⅓ slot and runs into the neighboring tab.
Selection pill doesn't cover the whole word — the pill is the button background (sized to the ⅓ slot), but the text extends beyond it.
In English the labels ("All", "Unread", "To-dos") are short enough to fit ⅓ of the width, which is why the bug is locale-dependent. Polish labels are much longer (pl.ts:2941 — todo: 'Zadania do wykonania', unread: 'Nieprzeczytane').
What changes do you think we should make in order to solve the problem?
Let the label container shrink within its tab so the existing numberOfLines={1} truncation can take effect:
On the label wrapper View in TabLabel.tsx:29, add flexShrink: 1 (and minWidth: 0 for the web/flexbox min-content case) alongside the existing maxWidth. With a bounded width, the label truncates with an ellipsis instead of overflowing.
Because TabLabel is shared by other selectors (e.g. navigation TabSelector, SplitExpensePage), confirm the change is visually fine there too — those rows aren't equalWidth-constrained, so allowing shrink should be a no-op when there's enough room. If any regression appears, scope the shrink to the equalWidth path instead.
What alternative solutions did you explore? (Optional)
Shortening the Polish copy. This only papers over the layout bug and would recur for any long translation/label.
Wrapping labels to 2 lines — rejected; tabs are a fixed-height single-line row (tabSelectorButtonHeight: 40).
Confidence: Medium-High. Root cause is established from code (RN default flexShrink: 0 + unbounded label width defeating numberOfLines={1}), and matches both symptoms and the locale-specific reproduction. Not verified with a live render in Polish.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/93975) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Please re-state the problem that we are trying to solve in this issue.
The Inbox filter tabs (All / Unread / To-dos), added in PR #92146, are laid out with equal width. When a tab's translated label is long — as in Polish, where "To-dos" becomes "Zadania do wykonania" and "Unread" becomes "Nieprzeczytane" — the visible pill of one tab overflows its slot and overlaps the neighboring tab, and the selected-state background no longer covers the full label.
What is the root cause of that problem?
The Inbox tabs render through InboxTabSelector → TabSelectorBase → TabSelectorItem with the equalWidth prop set. In TabSelectorItem, the layout is split across two views: the outer wrapper (the OpacityView inside PressableWithFeedback) receives wrapperStyle, and the inner pressable (the visible pill that carries the selection background) receives style. In equal-width mode only the wrapper gets flex: 1, while the inner pill keeps its intrinsic content size:
The flex: 1 on the wrapper divides the row into three equal slots, but that constraint never reaches the inner pill. tabSelectorButton only sets height, paddingHorizontal: 12, flexDirection: 'row', alignItems/justifyContent: center and a border radius — it has no flex, no width, no minWidth: 0, and no overflow, so it sizes to its content (label + horizontal padding) and is free to grow past the wrapper's bounds.
The label itself does not save us either. TabLabel wraps the text in a View with maxWidth: variables.tabSelectorMaxTabLabelWidth (256px) and numberOfLines={1}. The Polish "Zadania do wykonania" measures well under 256px, so the text never reaches the truncation cap and never ellipsizes — it simply renders at full width and pushes the pill wider than the third of the row the wrapper allotted. Because the inner pill (and its selection background) is what overflows while the wrapper stays at its flex: 1 width, the pill spills over the adjacent tab and the selected background, which is bounded by the wrapper's measured slot, stops short of the full word. So the gap is the missing constraint between the equal-width wrapper and its inner pill, not the 256px label cap.
What changes do you think we should make in order to solve the problem?
Propagate the equal-width constraint to the inner pill and let the label truncate within it. In TabSelectorItem, when equalWidth is true, add flex: 1 and minWidth: 0 to the pressable's style (alongside tabSelectorButton) so the pill fills exactly the wrapper's slot and is allowed to shrink below its content width:
The minWidth: 0 is the load-bearing part: a flex child defaults to min-width: auto, which refuses to shrink past its content, so without it the pill would still overflow. With the pill clamped to its slot, the existing numberOfLines={1} on the TabLabel text now ellipsizes long labels, and the selection background — drawn on this same pill — covers the entire visible label. Because the change is gated on equalWidth and the badge already has its own minWidth/marginLeft via inboxTabBadge, the non-equal-width navigation tabs (flexGrow1 path) are untouched. The other equalWidth callers (SetSpendRulesStep, EditInviteReceiptPartnerPolicyPage) flow through this same TabSelectorItem, so they inherit the correct fill-and-truncate behavior rather than regressing.
What alternative solutions did you explore? (Optional)
Lowering tabSelectorMaxTabLabelWidth so the label truncates sooner: rejected because it is a global, magic-number cap shared by every tab selector and would clip short labels unnecessarily while still not tying the pill width to the equal-width slot — the overlap can recur for any label wider than a third of the row.
🚨 Edited by proposal-police: This proposal was edited at 2026-06-18 19:49:03 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In the Inbox LHN, the All / Unread / To-dos filter tabs overlap each other when a label is long (e.g. Polish), and the selected-tab pill does not cover the whole word.
What is the root cause of that problem?
The filters render through InboxTabSelector with equalWidth, so every tab's wrapper gets flex: 1 — each tab is forced to exactly 1/3 of the (narrow) LHN width.
Inside every tab, the label is wrapped in a View that sets only maxWidth (256px) and has no flexShrink. In React Native/Yoga the default flexShrink is 0 (web CSS defaults to 1), so the label keeps its full content width and never shrinks to the 1/3 slot.
Because the label View never gets a bounded width, the inner numberOfLines={1} Text has nothing to truncate against, so the centered text spills past the button on both sides.
This single cause explains BOTH symptoms: the overflowing text runs into the neighbor tab (overlap), and the pill is the button background sized to the 1/3 slot, so it covers only the middle of the over-wide word. It is locale-specific because the English labels fit 1/3, while pl is long (todo: 'Zadania do wykonania').
inboxTabs: {all: 'Wszystko',todo: 'Zadania do wykonania',unread: 'Nieprzeczytane'},
TabLabel is the single shared label for every TabSelectorBase consumer (Inbox, Search narrow menus, WorkspaceListLayout), one file with no platform split — so one fix covers web and native.
What changes do you think we should make in order to solve the problem?
On the label wrapper View in TabLabel.tsx add flexShrink: 1 (plus minWidth: 0 for the web min-content case) alongside the existing maxWidth:
Now the label shrinks to the tab's real width and the existing numberOfLines={1} truncates with an ellipsis. Regression-safe: maxWidth still caps width, and non-equalWidth scrollable rows only shrink when space is actually constrained, so short labels and existing tab rows are unchanged.
What alternative solutions did you explore? (Optional)
Add minWidth: 0 only on the flex: 1 wrapper. Lets the wrapper shrink, but the label View's own flexShrink: 0 still keeps it from yielding, so the text can still overflow — incomplete.
Lower tabSelectorMaxTabLabelWidth. A magic number that still overflows on the narrowest widths and truncates short labels needlessly.
Please re-state the problem that we are trying to solve in this issue.
In the Inbox (LHN) filter row, long filter labels — e.g. in Polski — make the filter pills overlap each other, and the selected-state background does not cover the whole word.
What is the root cause of that problem?
The two symptoms are one defect: the pill box width is decided independently of its label. The filters row constrains each pill''s width — via a flex distribution (flex: 1 / shared flexBasis) or a fixed/maxWidth that was tuned against short English labels. With a long Polish word the label is wider than the box it lives in, and because overflow isn''t contained, the text bleeds past its own pill into the neighbour -> the overlap. The selected background is painted on that too-small box, not on the text, so it stops short of the word''s end.
Crucially, this is language-fragile by design: any width baked for one language''s word lengths will break for the next longer-word language. Polish just exposed it first.
What changes do you think we should make in order to solve the problem?
Stop constraining or distributing pill widths at all. Make each pill intrinsically content-sized inside a horizontally-scrollable row, so the box always equals its label and the row scrolls instead of squeezing. Overlap then becomes structurally impossible, in every language:
// Inbox filter pills row + pill styles (illustrative — confirm against the component)
filtersRow: {
flexDirection: 'row',
+ columnGap: 8, // real spacing between pills, not borrowed from squeezing
},
filterPill: {
- flex: 1, // (or a fixed / maxWidth) — forces a width unrelated to the label- overflow: 'visible', // long labels bleed past the box into the next pill+ flexGrow: 0,+ flexShrink: 0, // never compress below the label''s intrinsic width+ alignSelf: 'flex-start', // box wraps its content exactly
paddingHorizontal: 12,
},
And wrap the row in a horizontal ScrollView (horizontal showsHorizontalScrollIndicator={false}) so that when the intrinsic pills exceed the viewport they scroll rather than overflow. Because the selected background is the pill, and the pill now equals the label, the highlight always spans the full word — the second symptom is fixed by the same change.
What alternative solutions did you explore? (Optional)
Bump the fixed width / add padding / set a larger maxWidth — rejected: it just re-tunes a magic number for Polish and breaks again for the next language with longer words (German, Finnish...). It treats the symptom, not the language-fragile width model.
Truncate long labels with numberOfLines={1} + ellipsis — rejected: it stops the overlap but hides the filter name, degrading usability exactly where the words are longest; intrinsic-width + scroll keeps every label fully readable.
changed the title [-]Web - Inbox - Inbox filters overlap with each other when filter word is long[/-][+][$250] Web - Inbox - Inbox filters overlap with each other when filter word is long[/+]on Jun 18, 2026
Please re-state the problem that we are trying to solve in this issue.
When the app language is set to Polish, the Inbox tab filter labels ("Wszystko", "Nieprzeczytane", "Zadania do wykonania") are significantly longer than their English equivalents. Because all three tabs are rendered with equalWidth (each taking flex: 1 of the container), the columns are narrower than the fixed maxWidth: 256 cap on the label View in TabLabel.tsx. This allows the text to visually overflow its tab column and overlap adjacent tabs. The active selection pill is also narrower than the rendered text. The expected result is that each tab label is constrained to its equal-width column and does not overflow into neighboring tabs.
What is the root cause of that problem?
TabLabel.tsx:29 wraps label text in a View with style={{maxWidth: variables.tabSelectorMaxTabLabelWidth}} where tabSelectorMaxTabLabelWidth is the fixed value 256 (variables.ts:217). When InboxTabSelector.tsx renders TabSelectorBase with equalWidth (line 52), each tab's wrapper is given flex: 1 (TabSelectorItem.tsx:62), dividing the container into thirds. On typical screens those thirds are narrower than 256px, yet the label View is still permitted to grow to 256px, causing text to escape the tab column and overlap its neighbors. Neither tabSelectorButton nor AnimatedPressableWithFeedback enforces overflow: 'hidden', so the overflow is visible.
What changes do you think we should make in order to solve the problem?
src/components/TabSelector/TabLabel.tsx — Add an optional maxWidth prop (type number | string, default variables.tabSelectorMaxTabLabelWidth) and apply it to the outer View at line 29 instead of the hardcoded variable, so callers can pass '100%' when equal-width layout is needed.
src/components/TabSelector/TabSelectorItem.tsx — Pass equalWidth down to TabLabel and, when equalWidth is true, pass maxWidth="100%" to the new TabLabel prop so the label is capped to its flex column.
src/components/TabSelector/types.ts — Add the new maxWidth prop to TabLabelProps if it is exported/shared, or update the internal type in TabLabel.tsx.
Alternatively (simpler): in TabLabel.tsx:29, change the View style to {maxWidth: variables.tabSelectorMaxTabLabelWidth, overflow: 'hidden'} — this stops the visual bleed without requiring prop threading, though it does not prevent the text from being allocated space beyond the column.
What alternative solutions did you explore? (Optional)
Adding overflow: 'hidden' to tabSelectorButton in styles/index.ts:4477 would clip visually but still allow the label View to request more layout space than its column, potentially shifting the badge position; passing maxWidth='100%' to TabLabel is more correct because it constrains the layout measurement itself.
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
@Abdulloh0109 can you please accept the job below? Please reply here and tag me once you have.
If you're not sent an offer in Upwork when you're assigned to an issue, please tag me. If an Upwork job exists, please submit a proposal.https://www.upwork.com/jobs/~022086980474301324661
Activity
applause-bot commentedon Jun 18, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/b6fddfbab96cf53dbd75629246f937ac43a77120bfd9156e16a0f0c0f1bf1364
MelvinBot commentedon Jun 18, 2026
Proposal
Root Cause: The Inbox tab labels overflow their slots in long-word locales (e.g. Polish "Zadania do wykonania") because the tab label container never shrinks, so
numberOfLines={1}truncation never kicks in.What is the root cause of that problem?
The Inbox filter row renders via
InboxTabSelectorwithequalWidth, so each of the 3 tabs is givenflex: 1— exactly ⅓ of the (narrow) LHN width — viaTabSelectorItem.tsx:62.Inside each button, the label is wrapped in a
Viewthat only setsmaxWidthand has noflexShrink(TabLabel.tsx:29):In React Native / Yoga, the default
flexShrinkis 0 (unlike web CSS, where it is 1). So in a long-word locale the label View keeps its full intrinsic content width instead of shrinking to the button's ⅓ slot. Because the View never shrinks, thenumberOfLines={1}Text never gets a bounded width to truncate against, and the text spills past the button boundary.This explains both reported symptoms:
In English the labels ("All", "Unread", "To-dos") are short enough to fit ⅓ of the width, which is why the bug is locale-dependent. Polish labels are much longer (
pl.ts:2941—todo: 'Zadania do wykonania',unread: 'Nieprzeczytane').What changes do you think we should make in order to solve the problem?
Let the label container shrink within its tab so the existing
numberOfLines={1}truncation can take effect:ViewinTabLabel.tsx:29, addflexShrink: 1(andminWidth: 0for the web/flexbox min-content case) alongside the existingmaxWidth. With a bounded width, the label truncates with an ellipsis instead of overflowing.Because
TabLabelis shared by other selectors (e.g. navigationTabSelector,SplitExpensePage), confirm the change is visually fine there too — those rows aren'tequalWidth-constrained, so allowing shrink should be a no-op when there's enough room. If any regression appears, scope the shrink to theequalWidthpath instead.What alternative solutions did you explore? (Optional)
tabSelectorButtonHeight: 40).Investigation details & evidence
equalWidth→flex: 1per tab:flex.ts:17, applied atTabSelectorItem.tsx:62.paddingHorizontaland the label/badge children:tabSelectorButtonstyle.maxWidth: 256, no shrink:TabLabel.tsx:29;tabSelectorMaxTabLabelWidth = 256(variables.ts:217).flexShrink: 0+ unbounded label width defeatingnumberOfLines={1}), and matches both symptoms and the locale-specific reproduction. Not verified with a live render in Polish.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/93975)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
MobileMage commentedon Jun 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The Inbox filter tabs (All / Unread / To-dos), added in PR #92146, are laid out with equal width. When a tab's translated label is long — as in Polish, where "To-dos" becomes "Zadania do wykonania" and "Unread" becomes "Nieprzeczytane" — the visible pill of one tab overflows its slot and overlaps the neighboring tab, and the selected-state background no longer covers the full label.
What is the root cause of that problem?
The Inbox tabs render through
InboxTabSelector→TabSelectorBase→TabSelectorItemwith theequalWidthprop set. InTabSelectorItem, the layout is split across two views: the outer wrapper (theOpacityViewinsidePressableWithFeedback) receiveswrapperStyle, and the inner pressable (the visible pill that carries the selection background) receivesstyle. In equal-width mode only the wrapper getsflex: 1, while the inner pill keeps its intrinsic content size:App/src/components/TabSelector/TabSelectorItem.tsx
Lines 56 to 62 in 5a507e4
The
flex: 1on the wrapper divides the row into three equal slots, but that constraint never reaches the inner pill.tabSelectorButtononly setsheight,paddingHorizontal: 12,flexDirection: 'row',alignItems/justifyContent: centerand a border radius — it has noflex, nowidth, nominWidth: 0, and nooverflow, so it sizes to its content (label + horizontal padding) and is free to grow past the wrapper's bounds.App/src/styles/index.ts
Lines 4477 to 4485 in 5a507e4
The label itself does not save us either.
TabLabelwraps the text in aViewwithmaxWidth: variables.tabSelectorMaxTabLabelWidth(256px) andnumberOfLines={1}. The Polish "Zadania do wykonania" measures well under 256px, so the text never reaches the truncation cap and never ellipsizes — it simply renders at full width and pushes the pill wider than the third of the row the wrapper allotted. Because the inner pill (and its selection background) is what overflows while the wrapper stays at itsflex: 1width, the pill spills over the adjacent tab and the selected background, which is bounded by the wrapper's measured slot, stops short of the full word. So the gap is the missing constraint between the equal-width wrapper and its inner pill, not the 256px label cap.App/src/components/TabSelector/TabLabel.tsx
Lines 29 to 33 in 5a507e4
What changes do you think we should make in order to solve the problem?
Propagate the equal-width constraint to the inner pill and let the label truncate within it. In
TabSelectorItem, whenequalWidthis true, addflex: 1andminWidth: 0to the pressable'sstyle(alongsidetabSelectorButton) so the pill fills exactly the wrapper's slot and is allowed to shrink below its content width:The
minWidth: 0is the load-bearing part: a flex child defaults tomin-width: auto, which refuses to shrink past its content, so without it the pill would still overflow. With the pill clamped to its slot, the existingnumberOfLines={1}on theTabLabeltext now ellipsizes long labels, and the selection background — drawn on this same pill — covers the entire visible label. Because the change is gated onequalWidthand the badge already has its ownminWidth/marginLeftviainboxTabBadge, the non-equal-width navigation tabs (flexGrow1path) are untouched. The otherequalWidthcallers (SetSpendRulesStep,EditInviteReceiptPartnerPolicyPage) flow through this sameTabSelectorItem, so they inherit the correct fill-and-truncate behavior rather than regressing.What alternative solutions did you explore? (Optional)
Lowering
tabSelectorMaxTabLabelWidthso the label truncates sooner: rejected because it is a global, magic-number cap shared by every tab selector and would clip short labels unnecessarily while still not tying the pill width to the equal-width slot — the overlap can recur for any label wider than a third of the row.ahmdshrif commentedon Jun 18, 2026
🚨 Edited by proposal-police: This proposal was edited at 2026-06-18 19:49:03 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
In the Inbox LHN, the All / Unread / To-dos filter tabs overlap each other when a label is long (e.g. Polish), and the selected-tab pill does not cover the whole word.
What is the root cause of that problem?
InboxTabSelectorwithequalWidth, so every tab's wrapper getsflex: 1— each tab is forced to exactly 1/3 of the (narrow) LHN width.App/src/components/TabSelector/TabSelectorItem.tsx
Line 62 in 5a507e4
Viewthat sets onlymaxWidth(256px) and has noflexShrink. In React Native/Yoga the defaultflexShrinkis0(web CSS defaults to1), so the label keeps its full content width and never shrinks to the 1/3 slot.App/src/components/TabSelector/TabLabel.tsx
Lines 29 to 33 in 5a507e4
numberOfLines={1}Text has nothing to truncate against, so the centered text spills past the button on both sides.This single cause explains BOTH symptoms: the overflowing text runs into the neighbor tab (overlap), and the pill is the button background sized to the 1/3 slot, so it covers only the middle of the over-wide word. It is locale-specific because the English labels fit 1/3, while
plis long (todo: 'Zadania do wykonania').App/src/languages/pl.ts
Line 2941 in 5a507e4
TabLabelis the single shared label for everyTabSelectorBaseconsumer (Inbox, Search narrow menus, WorkspaceListLayout), one file with no platform split — so one fix covers web and native.What changes do you think we should make in order to solve the problem?
On the label wrapper
ViewinTabLabel.tsxaddflexShrink: 1(plusminWidth: 0for the web min-content case) alongside the existingmaxWidth:Now the label shrinks to the tab's real width and the existing
numberOfLines={1}truncates with an ellipsis. Regression-safe:maxWidthstill caps width, and non-equalWidthscrollable rows only shrink when space is actually constrained, so short labels and existing tab rows are unchanged.What alternative solutions did you explore? (Optional)
minWidth: 0only on theflex: 1wrapper. Lets the wrapper shrink, but the label View's ownflexShrink: 0still keeps it from yielding, so the text can still overflow — incomplete.tabSelectorMaxTabLabelWidth. A magic number that still overflows on the narrowest widths and truncates short labels needlessly.dostonbunyodov0006 commentedon Jun 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
In the Inbox (LHN) filter row, long filter labels — e.g. in Polski — make the filter pills overlap each other, and the selected-state background does not cover the whole word.
What is the root cause of that problem?
The two symptoms are one defect: the pill box width is decided independently of its label. The filters row constrains each pill''s width — via a flex distribution (
flex: 1/ sharedflexBasis) or a fixed/maxWidththat was tuned against short English labels. With a long Polish word the label is wider than the box it lives in, and because overflow isn''t contained, the text bleeds past its own pill into the neighbour -> the overlap. The selected background is painted on that too-small box, not on the text, so it stops short of the word''s end.Crucially, this is language-fragile by design: any width baked for one language''s word lengths will break for the next longer-word language. Polish just exposed it first.
What changes do you think we should make in order to solve the problem?
Stop constraining or distributing pill widths at all. Make each pill intrinsically content-sized inside a horizontally-scrollable row, so the box always equals its label and the row scrolls instead of squeezing. Overlap then becomes structurally impossible, in every language:
// Inbox filter pills row + pill styles (illustrative — confirm against the component) filtersRow: { flexDirection: 'row', + columnGap: 8, // real spacing between pills, not borrowed from squeezing }, filterPill: { - flex: 1, // (or a fixed / maxWidth) — forces a width unrelated to the label - overflow: 'visible', // long labels bleed past the box into the next pill + flexGrow: 0, + flexShrink: 0, // never compress below the label''s intrinsic width + alignSelf: 'flex-start', // box wraps its content exactly paddingHorizontal: 12, },And wrap the row in a horizontal
ScrollView(horizontal showsHorizontalScrollIndicator={false}) so that when the intrinsic pills exceed the viewport they scroll rather than overflow. Because the selected background is the pill, and the pill now equals the label, the highlight always spans the full word — the second symptom is fixed by the same change.What alternative solutions did you explore? (Optional)
maxWidth— rejected: it just re-tunes a magic number for Polish and breaks again for the next language with longer words (German, Finnish...). It treats the symptom, not the language-fragile width model.numberOfLines={1}+ ellipsis — rejected: it stops the overlap but hides the filter name, degrading usability exactly where the words are longest; intrinsic-width + scroll keeps every label fully readable.melvin-bot commentedon Jun 18, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 (
External)[-]Web - Inbox - Inbox filters overlap with each other when filter word is long[/-][+][$250] Web - Inbox - Inbox filters overlap with each other when filter word is long[/+]melvin-bot commentedon Jun 18, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022067695461141234994
aswin-s commentedon Jun 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When the app language is set to Polish, the Inbox tab filter labels ("Wszystko", "Nieprzeczytane", "Zadania do wykonania") are significantly longer than their English equivalents. Because all three tabs are rendered with
equalWidth(each takingflex: 1of the container), the columns are narrower than the fixedmaxWidth: 256cap on the labelViewinTabLabel.tsx. This allows the text to visually overflow its tab column and overlap adjacent tabs. The active selection pill is also narrower than the rendered text. The expected result is that each tab label is constrained to its equal-width column and does not overflow into neighboring tabs.What is the root cause of that problem?
TabLabel.tsx:29wraps label text in aViewwithstyle={{maxWidth: variables.tabSelectorMaxTabLabelWidth}}wheretabSelectorMaxTabLabelWidthis the fixed value256(variables.ts:217). WhenInboxTabSelector.tsxrendersTabSelectorBasewithequalWidth(line 52), each tab's wrapper is givenflex: 1(TabSelectorItem.tsx:62), dividing the container into thirds. On typical screens those thirds are narrower than 256px, yet the labelViewis still permitted to grow to 256px, causing text to escape the tab column and overlap its neighbors. NeithertabSelectorButtonnorAnimatedPressableWithFeedbackenforcesoverflow: 'hidden', so the overflow is visible.What changes do you think we should make in order to solve the problem?
src/components/TabSelector/TabLabel.tsx— Add an optionalmaxWidthprop (typenumber | string, defaultvariables.tabSelectorMaxTabLabelWidth) and apply it to the outerViewat line 29 instead of the hardcoded variable, so callers can pass'100%'when equal-width layout is needed.src/components/TabSelector/TabSelectorItem.tsx— PassequalWidthdown toTabLabeland, whenequalWidthis true, passmaxWidth="100%"to the newTabLabelprop so the label is capped to its flex column.src/components/TabSelector/types.ts— Add the newmaxWidthprop toTabLabelPropsif it is exported/shared, or update the internal type inTabLabel.tsx.TabLabel.tsx:29, change theViewstyle to{maxWidth: variables.tabSelectorMaxTabLabelWidth, overflow: 'hidden'}— this stops the visual bleed without requiring prop threading, though it does not prevent the text from being allocated space beyond the column.What alternative solutions did you explore? (Optional)
Adding
overflow: 'hidden'totabSelectorButtoninstyles/index.ts:4477would clip visually but still allow the labelViewto request more layout space than its column, potentially shifting the badge position; passingmaxWidth='100%'toTabLabelis more correct because it constrains the layout measurement itself.68 remaining items
melvin-bot commentedon Aug 6, 2026
@ahmedGaber93 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Abdulloh0109 commentedon Aug 7, 2026
@mallenexpensify
The payment is due today. Please don't forget.
ahmedGaber93 commentedon Aug 7, 2026
BugZero Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: https://github.com/Expensify/App/pull/92146/changes#r3734051807
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/670268
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Zapier Logs
Run ID: 00040eee-f7d6-afd0-dbde-6f2689698f94melvin-bot commentedon Aug 10, 2026
@ahmedGaber93 Whoops! This issue is 2 days overdue. Let's get this updated quick!
mallenexpensify commentedon Aug 11, 2026
Payment Summary
Contributor: @Abdulloh0109 due $250 via Upwork
Contributor+: @ahmedGaber93 due $250 via NewDot
@Abdulloh0109 can you please accept the job below? Please reply here and tag me once you have.
If you're not sent an offer in Upwork when you're assigned to an issue, please tag me. If an Upwork job exists, please submit a proposal.https://www.upwork.com/jobs/~022086980474301324661
ahmedGaber93 commentedon Aug 12, 2026
Not overdue ^
mallenexpensify commentedon Aug 12, 2026
@Abdulloh0109 paid, summary updated above. Thx.
@Abdulloh0109 plz comment on the GH when you accept the offer in Upwork, otherwise we won't know to pay you. Thx
flaviadefaria commentedon Sep 2, 2026
Approved: @ahmedGaber93 due $250 via NewDot