Legislation Detail: Long Bill Titles Cause Layout Overflow and Push "Add Action" Out of View - #177
Merged
Merged
Conversation
Truncates the AdminPageHeader title and the legislation table's title column so long bill titles no longer push action buttons out of view; the full title remains visible via the detail page metadata card and a hover tooltip on the table cell. (#164)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The legislation detail admin page renders the full bill number and title concatenated in the page header. When a bill has a long formal title, the heading overflows the layout, pushing content -- including the "Add Action" button -- out of the visible viewport. The legislation list table has the same problem: an unstyled title column can grow wide enough to scroll the Details/Edit/Delete action buttons off-screen.
Changes:
min-w-0/truncateto the sharedAdminPageHeadertitle so long titles no longer force the header row wider than the viewportmax-w/truncatecell renderer (with a hover tooltip showing the full text) to the title column in the legislation list table so action buttons stay visibleCloses #164