The columns in some tables are not quite aligned, which makes them look a bit cluttered and difficult to compare rows. This first example is almost okay, it just looks a bit messy:
The next example however is not so great:
I'd just put the different values in separate <td>s. However, if you like the current style visually, an easy fix is setting a min-width on the labels so they line out most of the time.
Another thing to consider, which I think is even better, is setting a max-width on the labels/<td>s. I'd then add this CSS (I am not familiar with Tailwind but it probably has something for this):
This will make longer texts be cut off nicely. To make it really good, add a <td title="full text in the td"> title attribute, so you can read all of the text while hovering 💯
The columns in some tables are not quite aligned, which makes them look a bit cluttered and difficult to compare rows. This first example is almost okay, it just looks a bit messy:
The next example however is not so great:
I'd just put the different values in separate
<td>
s. However, if you like the current style visually, an easy fix is setting a min-width on the labels so they line out most of the time.Another thing to consider, which I think is even better, is setting a
max-width
on the labels/<td>
s. I'd then add this CSS (I am not familiar with Tailwind but it probably has something for this):This will make longer texts be cut off nicely. To make it really good, add a
<td title="full text in the td">
title attribute, so you can read all of the text while hovering 💯