Skip to content

fix: keep the preferences timezone select inside the settings modal - #10257

Merged
sriramveeraghanta merged 1 commit into
previewfrom
fix/timezone-overflow
Nov 11, 2026
Merged

sriramveeraghanta merged 1 commit into
previewfrom
fix/timezone-overflow

Conversation

@anmolsinghbhatia

@anmolsinghbhatia anmolsinghbhatia commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

On Profile settings, Preferences, the Timezone select ran past the right edge of the settings modal when the selected timezone had a long name (for example "UTC+05:30 Chennai, Kolkata, Mumbai, New Delhi").

The select uses a fit-width trigger inside a max-w-64 wrapper. The wrapper was capped, but the trigger button inside it wasn't, so it grew with its label to about 347px and overflowed. The button is now capped at its wrapper ([&_button]:max-w-full), and the cap is now 288px (max-w-72). Long names truncate with an ellipsis, and the select lines up with the Theme, Language and First day of the week selects.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

image

Test Scenarios

  • Open Profile settings, then Preferences, and set the timezone to one with a long name, such as "UTC+05:30 Chennai, Kolkata, Mumbai, New Delhi". The select stays inside the modal, its right edge lines up with the Theme select, and the name truncates with an ellipsis.
  • Open the timezone dropdown: it opens under the trigger, stays inside the modal, and search and selection still work.
  • Pick a timezone with a short name: the trigger still fits its content.

Checks: web tsc --noEmit, oxfmt and oxlint on the changed file.

References

  • Reported while reviewing the profile settings modal.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Increased the available width for the timezone selector and allowed its button to fill that space, giving the control more room in language and timezone preferences. This is a layout adjustment; no changes to timezone options are included in this update.

The fit-width trigger grew with the selected timezone's label, so long names pushed it past its max-width wrapper and out of the modal. The button is now capped at the wrapper, widened to 288px, and the label truncates.
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The timezone selector’s maximum width changes from max-w-64 to max-w-72. Its button now uses the full available width.

Changes: Timezone selector sizing

Layer / File(s) Summary
Update selector width classes
apps/web/components/settings/profile/content/pages/preferences/language-and-timezone-list.tsx
The selector uses max-w-72, and its button uses max-w-full.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Possibly related PRs

  • makeplane/plane#10038: This PR replaces the timezone control and passes its width and className props in the same component.

Suggested labels: 🎨UI / UX

Merge Risk: Minimal · up to 9518f

This is a small styling fix that keeps the timezone select inside the settings modal. No behavioral or data risk was found, and it is ready to merge.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the primary change: preventing the preferences timezone select from overflowing the settings modal.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is complete and matches the repository template. It explains the overflow bug, identifies the CSS change, marks the bug-fix type, includes a screenshot, documents test scenarios and ch…
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Full details: Description check

Explanation

The description is complete and matches the repository template. It explains the overflow bug, identifies the CSS change, marks the bug-fix type, includes a screenshot, documents test scenarios and checks, and provides a reference.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd212988-3708-48c6-854a-ceb2112723a6
Commits

Reviewing files that changed from the base of the PR and between ea63ca8 and 9518f89.

Files selected for processing: 1

  • apps/web/components/settings/profile/content/pages/preferences/language-and-timezone-list.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@github-actions

Copy link
Copy Markdown

React Doctor found no new issues. 🎉

Reviewed by React Doctor for commit 9518f89.

@anmolsinghbhatia
anmolsinghbhatia marked this pull request as ready for review November 11, 2026 13:34
Copilot AI balanced review requested due to automatic review settings November 11, 2026 13:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@sriramveeraghanta
sriramveeraghanta merged commit dbdf611 into preview Nov 11, 2026
18 checks passed
@sriramveeraghanta
sriramveeraghanta deleted the fix/timezone-overflow branch November 11, 2026 13:56
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.

4 participants