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

Bug 1919231: fix topology quick search modal layout #7902

Merged
merged 1 commit into from Jan 28, 2021

Conversation

vikram-raj
Copy link
Member

Fixes:
https://issues.redhat.com/browse/ODC-5278

Analysis / Root cause:
The quick search modal contents aren't scrollable and on small screens the contents is displayed beyond the bounds of the modal container.

Solution Description:
Set content height and add properties overflow-y: auto.

Screen shots / Gifs for design review:
Kapture 2021-01-22 at 17 48 21

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@vikram-raj vikram-raj changed the title fix topology quick search modal layout Bug 1919231: fix topology quick search modal layout Jan 22, 2021
@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 22, 2021
@openshift-ci-robot
Copy link
Contributor

@vikram-raj: This pull request references Bugzilla bug 1919231, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1919231: fix topology quick search modal layout

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@vikram-raj
Copy link
Member Author

/kind bug

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 22, 2021
@christianvogt
Copy link
Contributor

Looks good.

One question for @bgliwa01 @openshift/team-devconsole-ux
Should the view all be sticky to the bottom? Or can we leave it as shown in Vikram's gif?

@bgliwa01
Copy link

If we could make the view all sticky that would be great! Thank you!

@jerolimov
Copy link
Member

If we could make the view all sticky that would be great! Thank you!

@bgliwa01 But that means also that the scrollable area will be really small and you will only see 1 to 1 1/2 items and then "View all". Up to you but hmm 🤔

@christianvogt
Copy link
Contributor

IMO if the view is so small to begin with, the user is better off going to the catalog anyways.
I'm fine either way.
I'm also ok with getting the current fix in and following up in another issue for the sticky portion.

<div
ref={ref}
className="odc-quick-search-modal-body"
style={{ height: catalogItems?.length > 0 ? '466px' : '60px' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Something wrong with 466px as it always shows a scrollbar when there are 5 results.
On my browser the height is 467px.
Instead of 60px you can also use undefined.
Lastly, in react '466px' is equivalent to the number 466. Prefer using numbers instead of strings.

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept the 60px height because the height of the input field is 60px and it is a child of modal body.

@bgliwa01
Copy link

"I'm also ok with getting the current fix in and following up in another issue for the sticky portion." +1

@vikram-raj
Copy link
Member Author

@christianvogt @bgliwa01 created an issue for sticky footer.

Copy link

@bgliwa01 bgliwa01 left a comment

Choose a reason for hiding this comment

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

lgtm! thanks!

@debsmita1
Copy link
Contributor

verified this locally
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 28, 2021
@christianvogt
Copy link
Contributor

Works to solve the issue.
Firefox still always shows a scrollbar.
There's also a hover issue on mobile that's odd.

The fix is an improvement and I'll log a separate issue for the remaining issues as they aren't caused by this change.

@christianvogt
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bgliwa01, christianvogt, debsmita1, vikram-raj

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 28, 2021
@openshift-merge-robot openshift-merge-robot merged commit da54c77 into openshift:master Jan 28, 2021
@openshift-ci-robot
Copy link
Contributor

@vikram-raj: All pull requests linked via external trackers have merged:

Bugzilla bug 1919231 has been moved to the MODIFIED state.

In response to this:

Bug 1919231: fix topology quick search modal layout

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@vikram-raj vikram-raj deleted the odc-5278 branch January 28, 2021 23:01
@spadgett spadgett added this to the v4.7 milestone Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants