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

Changing shrinking screen size entity title behavior #24882

Closed
wants to merge 1 commit into from

Conversation

SnowBlitzer
Copy link
Contributor

@SnowBlitzer SnowBlitzer commented May 23, 2024

Hey, I just made a Pull Request!

It seems some work done for screen sizing has been lost (ex this PR) and longer names get cut off for entities and the formatting of the header can become jumbled.

For both better readability and easier accessibility, I've made it so the name wraps to keep the user provided with full information and formatted the owner, lifecycle, and menu to always stay together and move as unit.

Before:
Screenshot 2024-05-23 at 10 44 15 AM
Screenshot 2024-05-23 at 10 44 43 AM
Screenshot 2024-05-23 at 10 44 55 AM

After:
Screenshot 2024-05-23 at 10 45 27 AM
Screenshot 2024-05-23 at 10 45 21 AM
Screenshot 2024-05-23 at 10 45 15 AM

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@SnowBlitzer SnowBlitzer requested review from a team as code owners May 23, 2024 14:51
@github-actions github-actions bot added the area:catalog Related to the Catalog Project Area label May 23, 2024
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/plugin-catalog plugins/catalog patch v1.20.1-next.0

Signed-off-by: Jordan Snow <jordans@spotify.com>
@joshjung
Copy link
Contributor

If I can make a suggestion, I would definitely prefer that the title show an ellipsis and have a tooltip show the full name when you roll over with the mouse. Part of the reason is that on long names like this it is hard to tell if there is an actual line-break in the name.

@SnowBlitzer
Copy link
Contributor Author

@joshjung an entity name shouldn't support line breaks in the name in the standard catalog config. Is this something that you're seen users override?

The hover tool tip still shows the full, none-wrap and none-formatted name if there is any confusion there. Seems like adding a step to a user's information consumptions for an edge case feels bad from their perspective

@joshjung
Copy link
Contributor

Yeah it's just a personal preference having done frontend for a long time, I don't enjoy when large titles wrap a ton within words as it can cause confusion and it causes the page layout to end up looking odd. Feel free to carry on.

Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Jun 25, 2024
Copy link
Contributor

@camilaibs camilaibs left a comment

Choose a reason for hiding this comment

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

Hi @SnowBlitzer, thanks for opening a pull request 🙂 .
I would like to recommend adding an optional property to the component to disable title wrapping rather than changing the default style. Something like:

<EntityLayoutTitle disableTitleWrapping .../>

What do you think?

@github-actions github-actions bot removed the stale label Jul 2, 2024
@joshjung
Copy link
Contributor

@camilaibs I think this is a great compromise!

Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions bot added the stale label Jul 30, 2024
@github-actions github-actions bot closed this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:catalog Related to the Catalog Project Area design stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants