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: detailspage, resizing & consistency #2987

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

deboer-tim
Copy link
Collaborator

@deboer-tim deboer-tim commented Jun 23, 2023

What does this PR do?

The four details pages each had a little uniqueness, and some copy/paste errors (e.g. issue #2986 - the close button goes to the wrong place). They also had layout issues when the window is narrower (issue #2322).

This creates a common DetailsPage component to make sure the pages are consistent, and applies it to each page. There are two features that are only used by one page right now (e.g. images have a title detail in purple; containers has statistics detail on the right) but otherwise everything in the same.

Fixed a few layout issues in the component to improve narrow layouts (e.g. extraneous spacing, moved tabs to new row) and fixed the close action. There is still some work that could be done to reduce some of the class attributes that are still required in each page or simplify further, but I think this is a good pass.

Screenshot/screencast of this PR

Before:
Screenshot 2023-06-23 at 11 29 46 AM
Screenshot 2023-06-23 at 11 29 59 AM

After:
Screenshot 2023-06-23 at 11 27 53 AM
Screenshot 2023-06-23 at 11 28 11 AM

What issues does this PR fix or reference?

Fixes #2322.
Fixes #2986.

How to test this PR?

Open up the details pages on each kind of object.

The four details pages each had a little uniqueness, and some copy/paste errors
(e.g. issue containers#2986 - the close button goes to the wrong place). They also had
layout issues when the window is narrower (issue 2322).

This creates a common DetailsPage component to make sure the pages are consistent,
and applies it to each page. There are two features that are only used by one page
right now (e.g. images have a title detail in purple; containers has statistics
detail on the right) but otherwise everything in the same.

Fixed a few layout issues in the component to improve narrow layouts (e.g.
extraneous spacing, moved tabs to new row) and fixed the close action. There is
still some work that could be done to reduce some of the class attributes that are
still required in each page or simplify further, but I think this is a good pass.

Fixes containers#2322.
Fixes containers#2986.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
@deboer-tim deboer-tim requested review from a team and benoitf as code owners June 23, 2023 15:47
@deboer-tim deboer-tim requested review from jeffmaury and lstocchi and removed request for a team June 23, 2023 15:47
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

not tested but LGTM

@deboer-tim deboer-tim merged commit 215b8ee into containers:main Jun 26, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.2.0 milestone Jun 26, 2023
@deboer-tim deboer-tim deleted the details branch June 26, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants