Skip to content

User Content CSS Adjustment for tables #221

@Martii

Description

@Martii

Does anyone see an issue with adding the following CSS rule to common.css?

.user-content th > a {
  display: inline;
}

Currently in the Compatibility Matrix of this script anchored th tags are block level due to a general rule of:

th > a {
  color: initial;
  display: block;
}

... and messes up multiple anchored images inside the tag. This changed when the UI was updated. Since we support markup now it's easy to do a <br /> if we want one in a user defined th tag.


EDIT: Another personal preference option is to add some faint lines and an offset background color for th tags like the right side panel defaults. Is this preferred?

Btw @sizzlemctwizzle center, left and right are being sanitized from #190 and 23f47bc when used with gfm table support alignment and the classes may not be defined too. I haven't had a chance to find a way to filter through just those three yet but only in .user-content with th tags and exclude anything else... unless we need something else down the line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSomething we do have implemented already but needs improvement upon to the best of knowledge.mightfixEhh maybe... convince us all...questionA question has been encountered by anyone and has remained unanswered until cleared.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions