Skip to content

fix: Long dashboard titles overflow the navbar tab#2348

Merged
ericlln merged 3 commits intodeephaven:mainfrom
ericlln:DH-17510-long-dashboard-titles-overflow-navbar
Jan 29, 2025
Merged

fix: Long dashboard titles overflow the navbar tab#2348
ericlln merged 3 commits intodeephaven:mainfrom
ericlln:DH-17510-long-dashboard-titles-overflow-navbar

Conversation

@ericlln
Copy link
Copy Markdown
Contributor

@ericlln ericlln commented Jan 23, 2025

  • Moved the title into its own element in the navbar tab so that text-overflow: ellipsis would work properly.
  • Tested by creating dashboards with both long and short titles to confirm that long titles are truncated with ellipses, and short titles display in the same way as before.

@ericlln ericlln requested a review from mofojed January 23, 2025 17:04
@ericlln ericlln self-assigned this Jan 23, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.76%. Comparing base (ae544fa) to head (35f1b11).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2348    +/-   ##
========================================
  Coverage   46.76%   46.76%            
========================================
  Files         710      710            
  Lines       39107    39107            
  Branches     9773     9958   +185     
========================================
  Hits        18288    18288            
  Misses      20808    20808            
  Partials       11       11            
Flag Coverage Δ
unit 46.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mofojed mofojed requested review from dsmmcken and removed request for mofojed January 27, 2025 15:54
@mofojed
Copy link
Copy Markdown
Member

mofojed commented Jan 27, 2025

I'm assigning @dsmmcken for review as this is mainly a styling thing.

Copy link
Copy Markdown
Contributor

@dsmmcken dsmmcken left a comment

Choose a reason for hiding this comment

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

if we are truncating it we should also tooltip it so users can get the full name.

If the user has a dash:
my_long_dashboard_name_1
my_long_dashboard_name_2

There's no way to tell them apart.

@ericlln
Copy link
Copy Markdown
Contributor Author

ericlln commented Jan 27, 2025

Currently the Tooltip component is placed inside of the span for the title to make it appear only when the text is hovered, which prevents it from conflicting with the tooltip on the close button. On enterprise, there is no tooltip for the close button, and the tooltip is triggered by hovering over any part of the tab, rather than only the text.

@ericlln ericlln requested a review from dsmmcken January 28, 2025 15:52
@ericlln ericlln merged commit d1e345a into deephaven:main Jan 29, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants