Skip to content

fix: Alignment of alerts row in query view #308

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

Closed
wants to merge 1 commit into from

Conversation

aeisenberg
Copy link
Contributor

fixes #237.

Copy link
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

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

I'm still seeing a slightly higher baseline for the results predicate dropdown after this PR:

image

Is the problem perhaps instead due to the vertical-align: middle alignment given to .vscode-codeql__result-table-toggle-diagnostics label and .vscode-codeql__result-table-toggle-diagnostics input?

@jcreedcmu
Copy link
Contributor

Yeah, I lean towards thinking that fixing the underlying choice of alignment is preferable to pixel hacking in this case?

@aeisenberg
Copy link
Contributor Author

aeisenberg commented Mar 24, 2020

I'm still seeing a slightly higher baseline for the results predicate dropdown after this PR

I'll look at that too. Looks like it's less than a pixel. I'll try playing around with the vertical-align.

@aeisenberg aeisenberg force-pushed the aeisenberg/alignment branch from 8ac7b54 to eef5dc7 Compare March 24, 2020 17:07
@aeisenberg
Copy link
Contributor Author

The problem is that there is a misalignment is between the select and the span (the leftmost two elements on the row). The classes that you mention, @henrymercer only apply to the input and the label on the right. Even if I change the vertical-align property, I'll still need to make a change to either the select or the span.

So, I came up with something that seems to work ok. It's more complex than before

@henrymercer
Copy link
Contributor

@aeisenberg Are you able to repro locally? I still seem to be getting misalignment when I check out your PR:

image

I wonder whether what we really want is all the text above the results table to be vertically aligned with the middle of the checkbox. I don't know whether that's achievable nicely (one option could just be reverting to your original implementation) but does that sound like the right goal?

@aeisenberg
Copy link
Contributor Author

Hmmm...I'm seeing something different with the latest of this PR. As far as I can tell, the row is completely aligned.

Not sure what the difference is. Are you on Linux? I'm on mac.

Is this issue a big concern for you? I've already spent more than an hour on this and I'm not sure if it is worth my time to spend much more.

_Extension_Development_Host__-_CodeQL_Query_Results_—_vscode-codeql-starter__Workspace__and_query-history_ts_—_vscode-codeql

@henrymercer
Copy link
Contributor

Not sure what the difference is. Are you on Linux? I'm on mac.

I'm on Mac as well

Is this issue a big concern for you? I've already spent more than an hour on this and I'm not sure if it is worth my time to spend much more.

No definitely not, it's a nit.

@aeisenberg
Copy link
Contributor Author

@jcreedcmu would you be able to try this out on your linux machine and see whether you can reproduce? Though, I also recommend not spending much more time on this since there are other things to work on.

@aeisenberg
Copy link
Contributor Author

Going to close this unless we can come to some sort of consensus or conclusion here.

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 this pull request may close these issues.

Text in interpreted results view header appears to have slightly different vertical alignment
3 participants