Problem/Motivation
The height for the schema explorer is hard-coded at 650px, would be nicer since there's often a lot of real estate under it to have it bigger
Proposed resolution
Make it based on a vh css variable instead
Issue fork graphql-3533544
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
kingdutchWill consider this for 5.x, but I need to check what this looks like and how this affects various screen sizes.
Comment #4
kingdutchOn my 16 inch MacBook the change is negligible.
Moving from 650px to 75vh means that this would reduce the size on screens with less viewport height than 867px. Most screens are likely bigger than this, so there'd be more space. On smaller screens having the size of the query reduce is also good to reduce the amount of scrolling.
Since the explorer has internal scroll I'm adding a minimum height of 450px at which the explorer still works correctly. At that point to use the UI you'd have to scroll both in your browser and within the explorer itself.
Comment #5
kingdutch