Skip to content

Table alignment on Topics pages #176

@isaac-blanc

Description

@isaac-blanc

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));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions