AnswerDotAI / AnswerDotAI/nbdev

Fix for docments table column widths

Open
#1,441 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
5.3k
Forks
513
Avg merge
2d 30m
Merged PRs (30d)
8

Description

Because [Markdown tables must have fixed-width columns](https://github.com/quarto-dev/quarto-cli/discussions/7399), the layout of the docments table is less than ideal. Here's an example from the nbdev documentation:

Untitled

We can use a css rule in styles.css to get auto spacing back:

```.table colgroup col {width: auto !important;} ```

That looks a lot nicer to me:

Untitled 2

If it's too heavy-handed to disable all `colgroup` width specifications, maybe we could add a custom class to the docment table and use that in the css rule?

Contributor guide

Open the contributing guide

Research direction

Start by locating styles.css and the CSS for the docments table, then compare the generated table layout with the examples in the issue. Decide whether the width rule should apply broadly or through a custom table class. Done means the docments table has automatically spaced columns without adversely affecting unrelated tables.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.