willfaught / paige

Powerful, pliable pixel perfection. An advanced Hugo theme.
https://willfaught.com/paige
MIT License
241 stars 50 forks source link

Table spacing is cramped #66

Closed zigmd closed 4 months ago

zigmd commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

Changed the padding to 0.25rem in v0.80.1.

zigmd commented 4 months ago

Thanks, 0.25rem looks better.