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 spacing is cramped #66

Closed
saurabh-sm opened this issue Jun 6, 2024 · 3 comments
Closed

Table spacing is cramped #66

saurabh-sm opened this issue Jun 6, 2024 · 3 comments

Comments

@saurabh-sm
Copy link

The spacing between tables is not wide enough.

They look pretty cramped in general. More spacing or having lines will make reading the table data easier.

@willfaught
Copy link
Owner

Bootstrap table styles aren't applied automatically. You have to set the "table" class yourself:

<table class="table">
<tr>
<td>Italics</td>
<td>Bold</td>
<td>Code</td>
</tr>
<tr>
<td><i>italics</i></td>
<td><b>bold</b></td>
<td><code>code</code></td>
</tr>
</table>

See https://getbootstrap.com/docs/5.3/content/tables/#overview.

Note that if you want to use the Markdown table syntax, it's possible to specify the table class in Markdown too:

https://discourse.gohugo.io/t/render-hooks-for-tables/37550/3?u=will

I added a default padding of 0.5rem to td and th in v0.80.0.

@willfaught
Copy link
Owner

Changed the padding to 0.25rem in v0.80.1.

@saurabh-sm
Copy link
Author

Thanks, 0.25rem looks better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants