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

chore: allow simple column to wrap to 2 lines #8403

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

deboer-tim
Copy link
Contributor

What does this PR do?

I had a change to make service port a special column that could wrap to two lines, but then I figured why not all simple columns? If text is too wide to fit into a column this will cause it to wrap to two lines. Longer text will still use ellipsis. (we could go to 3 or 4 lines, but allowing twice as much text seemed like a reasonable balance that doesn't affect the rest of the table layout)

Screenshot / video of UI

Before:

Screenshot 2024-08-08 at 2 57 41 PM

After:

Screenshot 2024-08-08 at 2 56 46 PM

What issues does this PR fix or reference?

Fixes #5442.

How to test this PR?

Having multiple service ports are the most obvious way to trigger this, but on very narrow columns something like "2 months" will be wrapped to: "2
months"
instead of:
"2 mo..."

  • Tests are covering the bug fix or the new feature

I had a change to make service port a special column that could wrap to two lines,
but then I figured why not all simple columns? If text is too wide to fit into a
column this will cause it to wrap to two lines. Longer text will still use ellipsis.
(we could go to 3 or 4 lines, but allowing twice as much text seemed like a
reasonable balance that doesn't affect the rest of the table layout)

Having multiple service ports are the most obvious way to trigger this, but on
very narrow columns something like "2 months" will be wrapped to:
"2
months"
instead of:
"2 mo..."

Fixes podman-desktop#5442.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim deboer-tim requested review from benoitf and a team as code owners August 8, 2024 19:10
@deboer-tim deboer-tim requested review from axel7083, lstocchi, SoniaSandler and cdrage and removed request for a team August 8, 2024 19:10
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

Big 👍 👍

This looks so much better / cleaner and makes me happy since some of my services / deployments have a lot of ports open.

LGTM!

Screenshot 2024-08-08 at 3 53 28 PM
Screenshot 2024-08-08 at 3 53 35 PM

@deboer-tim deboer-tim merged commit d138712 into podman-desktop:main Aug 12, 2024
7 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.13.0 milestone Aug 12, 2024
@deboer-tim deboer-tim deleted the simple-col-2 branch August 12, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes services page: List of ports is hidden
5 participants