Skip to content

Fix UI Overflow Issue for Long Organization Names #18816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Siddhant-K-code
Copy link
Member

@Siddhant-K-code Siddhant-K-code commented Sep 27, 2023

Description

This PR addresses a UI overflow bug that occurs when organization names exceed a certain length. Users were experiencing a visual glitch where long organization names would overflow their container, leading to a disrupted user interface and degraded user experience.

Before After
image image
image image
Summary generated by Copilot

🤖 Generated by Copilot at a7f1578

This pull request improves the UI of the dashboard by truncating long organization names and icons in the organization selector component. It applies the truncate class to several divs in OrganizationSelector.tsx.

Related Issue(s)

Fixes EXP-708

How to test

  • Open preview
  • Create organization of 60 chracters (FYI: max. limit is 64 characters)
  • And, see the Top left Org dropdown 👀

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Thanks, @Siddhant-K-code. 🌮

Left some comments below, I think we only need to add truncate and w-40 in two places and remove all the other changes to make this use truncation properly.

Cross-posting for visibility from relevant discussion (internal) although this could be out of the scope of this PR:

@gtsiolis: We should probably also limit the org name to 32 as it makes even more sense here.

BEFORE AFTER
Frame 1923 Frame 1924
Frame 1925 Frame 1926

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, everyone!

/unhold

@roboquat roboquat merged commit 2ba3475 into main Sep 27, 2023
@roboquat roboquat deleted the siddhant/exp-708-ui-overflow-on-large-organization-names branch September 27, 2023 06:51
Siddhant-K-code added a commit that referenced this pull request Sep 27, 2023
@Siddhant-K-code Siddhant-K-code mentioned this pull request Sep 27, 2023
14 tasks
roboquat pushed a commit that referenced this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants