Skip to content
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

Fix formatting of long lane names (PP-1962) #140

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented Nov 22, 2024

Description

In the work editor long lane names were being formatted poorly. Found this while working on PP-1962.

Motivation and Context

Before this change:
Screenshot 2024-11-22 at 2 30 42 PM

After:
Screenshot 2024-11-22 at 2 29 02 PM

I took a look around the admin interface after making this change, and I don't see any ill effects, but I'm not 100% sure everywhere this style-sheet is used, so its possible there is a better way to approach this.

How Has This Been Tested?

  • Tested locally

Checklist:

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen added the bug Something isn't working label Nov 22, 2024
@jonathangreen jonathangreen requested a review from a team November 22, 2024 18:33
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

Looks good! One suggestion below.

@@ -27,7 +27,6 @@
display: block;
background: darken($gray-tint, 5);
padding: 6px 12px;
height: 34px;
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is probably safe, but in order to ensure that the element doesn't collapse if it has content that doesn't intrinsically have height of its own, I would suggest changing this property to

    min-height: 34px;

rather than removing height altogether. That will prevent the element collapsing, but will allow it to grow as needed.

@jonathangreen jonathangreen merged commit a60099b into main Nov 25, 2024
1 check passed
@jonathangreen jonathangreen deleted the bugfix/long-lane-name-formatting branch November 25, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants