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

Fix header alignment for multi-dimension reports #15134

Merged
merged 7 commits into from Dec 5, 2019
Merged

Fix header alignment for multi-dimension reports #15134

merged 7 commits into from Dec 5, 2019

Conversation

katebutler
Copy link

Fixes #15118

@katebutler katebutler added the Needs Review PRs that need a code review label Nov 8, 2019
@katebutler katebutler added this to the 3.13.0 milestone Nov 8, 2019
@sgiehl
Copy link
Member

sgiehl commented Nov 8, 2019

That kind of breaks the scrolling if the table doesn't have enough space as all label columns are set sticky

@katebutler
Copy link
Author

Good point @sgiehl, have added CSS to ensure only the leftmost column will be made sticky.

left: 0;
z-index: 1;
background-clip: padding-box;

&:first-child {
Copy link
Member

Choose a reason for hiding this comment

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

@katebutler I reckon this overwrites https://github.com/matomo-org/matomo/pull/15129/files#diff-8b20fa1b843d28bf8988e7c3c93a54b2R661 and breaks the other feature?

Could we maybe simply add a new class to those column headers that does a textalign:left ? This should reduce the risk of breaking things

@mattab mattab modified the milestones: 3.13.0, 3.13.1 Nov 27, 2019
@tsteur
Copy link
Member

tsteur commented Nov 28, 2019

@katebutler can you update below screenshot which seems maybe due to this change and then merge? Thanks

https://builds-artifacts.matomo.org/matomo-org/matomo/3.x-dev/37165/Comparison_subtables_loaded.png

@tsteur
Copy link
Member

tsteur commented Dec 4, 2019

@katebutler
Copy link
Author

I wouldn't have thought so - it looks OK in my browser and the heading that's disappeared doesn't have the first class so shouldn't be affected.

@tsteur tsteur merged commit a14d504 into 3.x-dev Dec 5, 2019
@tsteur tsteur deleted the 15118 branch December 5, 2019 22:07
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Column Title alignment in Custom report is inconsistent
4 participants