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

import yaml modal has an unnecessary scrollbar when launched from landing page #2076

Closed
ncameronbritt opened this issue Sep 14, 2017 · 9 comments
Assignees
Labels
area/styles kind/bug Categorizes issue or PR as related to a bug. priority/P3

Comments

@ncameronbritt
Copy link

ncameronbritt commented Sep 14, 2017

When launched from the landing page, the Import YAML modal has a scrollbar, but not when launched from within a project.

Landing page:
screen shot 2017-09-14 at 11 32 35 am

Project:
screen shot 2017-09-14 at 11 31 00 am

@ncameronbritt
Copy link
Author

Sorry, copied the wrong image the first time.

@spadgett spadgett added area/styles kind/bug Categorizes issue or PR as related to a bug. priority/P3 labels Sep 14, 2017
@rhamilto
Copy link
Member

rhamilto commented Sep 14, 2017

This is occurring because of the addition of the "Add to project" dropdown. I'm assuming we don't want to increase the max-height of the modal for this one use case.

And note: if user chooses to "Create Project" from the "Add to Project" dropdown, additional fields appear.

screen shot 2017-09-14 at 2 07 07 pm

@rhamilto
Copy link
Member

rhamilto commented Sep 14, 2017

An alternate approach to increasing the max-height of the modal would be to reduce the height of the editor when on the landing page. But we'll still have the "Create Project" issue.

screen shot 2017-09-14 at 2 14 03 pm

@spadgett
Copy link
Member

I think Jessica set the editor height based on the dialog height before we added the select project dropdown. I'm OK with either fix. It does seem like the dialog is a little short to me, though.

I'm less worried about "Create Project."

@ncameronbritt
Copy link
Author

@rhamilto @spadgett I glossed over the project picker. I'm not sure there's a real issue here. I mean, if the modal has a max height, then at some point it will need to scroll.

@spadgett
Copy link
Member

I agree except we're tying to size the editor to exactly fit, but not doing it right in this instance.

@rhamilto
Copy link
Member

I like the latter option as it doesn't require futzing with the modal max-height and eliminates double scrollbars.

Yea
screen shot 2017-09-14 at 2 34 12 pm

Nay
screen shot 2017-09-14 at 2 34 35 pm

I will PR the Yea if y'all are good with it.

@ncameronbritt
Copy link
Author

If @spadgett is good with it, I am too.

@spadgett
Copy link
Member

Works for me, thanks @rhamilto

f0x11 pushed a commit to f0x11/origin-web-console that referenced this issue Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/styles kind/bug Categorizes issue or PR as related to a bug. priority/P3
Projects
None yet
Development

No branches or pull requests

4 participants