Skip to content

Fix: Prevent "CONTRIBUTIONS" tab text wrapping by using scrollable tab mode#6793

Open
Roniscend wants to merge 1 commit intocommons-app:mainfrom
Roniscend:Fix-text
Open

Fix: Prevent "CONTRIBUTIONS" tab text wrapping by using scrollable tab mode#6793
Roniscend wants to merge 1 commit intocommons-app:mainfrom
Roniscend:Fix-text

Conversation

@Roniscend
Copy link
Copy Markdown
Contributor

Description (required)

Fixes #6782

What changes did you make and why?
Changed tab mode to scrollable to prevent "CONTRIBUTIONS" text wrapping and ensure proper tab rendering.

Tested 6.4.0-debug on Pixel 9 (Android 16)

Screenshots (for UI changes only)

c.mp4

Signed-off-by: Owm Dubey <owmdubey163@gmail.com>
Copilot AI review requested due to automatic review settings March 24, 2026 21:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Profile screen’s TabLayout configuration to prevent the “CONTRIBUTIONS” tab label from wrapping onto multiple lines (issue #6782), improving tab rendering on narrow devices.

Changes:

  • Switch Profile TabLayout mode from fixed to scrollable to allow tabs to size to their content and scroll when needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

✅ Generated APK variants!

android:background="?attr/tabBackground"
app:tabIndicatorColor="?attr/tabIndicatorColor"
app:tabMode="fixed"
app:tabMode="scrollable"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Roniscend, this resolves the issue well, and i see rn they are currently left-aligned. How about improving the UX by centering the tabs (via tabgravity). so that it remain centered when they fit on screen, and still behaving as scrollable when the text size increases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "CONTRIBUTIONS" tab text wraps due to insufficient tab width

3 participants