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: excessive whitespace surrounding document viewer #7327

Open
surfacehazard opened this issue Apr 7, 2024 · 8 comments
Open

bug: excessive whitespace surrounding document viewer #7327

surfacehazard opened this issue Apr 7, 2024 · 8 comments

Comments

@surfacehazard
Copy link
Contributor

Describe the bug

The default vertical-align for table cells is "middle" on both Chrome-based and Firefox browsers. So, if the vertical alignment is not set, the content will be displayed with wasted space on both top and bottom.

@sjpadgett
Copy link
Sponsor Member

sjpadgett commented Apr 7, 2024

Is table bootstrap, doesn't sound like it. Maybe could be! Where is it located?
Never mind I see PR

@stephenwaite stephenwaite changed the title excessive whitespace surrounding document viewer bug: excessive whitespace surrounding document viewer Apr 22, 2024
@stephenwaite
Copy link
Sponsor Member

hi @surfacehazard , could you post a screenshot that shows the change please? thanks!

@adunsulag
Copy link
Sponsor Member

I've pulled this down on my local box and I can't see any difference from this change on Chrome version 119.0.6045.123.

@surfacehazard
Copy link
Contributor Author

I've pulled this down on my local box and I can't see any difference from this change on Chrome version 119.0.6045.123.

It's only noticible if the window width is small enough to push the document viewer down (to the "middle"). I've already patched all of our systems, but I'll see if I can get a screenshot of the unpatched behavior.

@stephenwaite
Copy link
Sponsor Member

thanks @surfacehazard , no need, verified with your added details, thank you!

@surfacehazard
Copy link
Contributor Author

surfacehazard commented Apr 23, 2024

I can no longer replicate the behavior in Chromium v124.0.6367.60 or Firefox v124.0.2. I did confirm that the document viewer TD still had "vertical-align: middle" from the default browser stylesheet - it does not inherit the "align-top" from the TABLE element. The PR I created simply added the "align-top" class attribute to the document "Contents" tab to bring it inline with what is on the document "Properties" tab.

@stephenwaite
Copy link
Sponsor Member

Okay, thanks @surfacehazard. It looks like the change that takes place in my Chromium v123 is that the TD is moved down below the popout which isn't looking very good. Going to close this issue.

@stephenwaite
Copy link
Sponsor Member

closing

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 a pull request may close this issue.

4 participants