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

Table alignment on Topics pages #176

Open
IsaacBlancICL opened this issue Feb 5, 2025 · 0 comments
Open

Table alignment on Topics pages #176

IsaacBlancICL opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@IsaacBlancICL
Copy link

IsaacBlancICL commented Feb 5, 2025

Problem

Markdown tables align correctly on class pages but appear too far to the left on topics pages. Topics pages are those created by groups. In the two examples below, I am using the same markdown file and including it in the detailed description for a class or topics page with the \include{doc} command.

This screenshot is from a class page:
Image

This screenshot is from a topic page:
Image

Note how the table is shifted left on the topic page.

Solution

I fixed this by changing margin-left: calc(0px - var(--spacing-large)); to margin-left: calc(0px); in the doxygen-awesome.css, however I'm not yet sure what knock-on effects this will have. Moreover, its probably a bodge. I wonder what the proper approach would be.

.contents > table:not(.memberdecls):not(.mlabels):not(.fieldtable):not(.memname):not(.classindex) {
    margin-left: calc(0px); /* was previously calc(0px - var(--spacing-large))*/
    margin-right: calc(0px - var(--spacing-large));
    max-width: calc(100% + 2 * var(--spacing-large));
}
@jothepro jothepro added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants