TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
64 stars 28 forks source link

Latest publications table on homepage takes up more space due to line breaks in date cells #1112

Closed YoshiRulz closed 1 year ago

YoshiRulz commented 2 years ago

v2.3.21: Screenshot_20220221_030227 I suggest using  . Here's what it looks like after replacing the spaces in the first date (column 1, row 2) with  : Screenshot_20220221_025648 Might want to replace the space in "(Was xx:xx.xx)" too to keep that together on the second line.

Masterjun3 commented 2 years ago

Instead of using   it would probably be better to use the css property white-space nowrap. The date display is used in a lot of different places where breaks can be needed. Speaking of that. While this suggestion can look good on big screens, the white space breaking is much more necessary on mobile widths or in general when you don't have a lot of space for the columns. The reason it looks off here is because of the very large space taken to display all the authors for the row of CELESTE Classic. The calculations for distributing column widths is skewed in favor of the author column.

So all in all, I think an argument could be made about displaying this data in html tables being a bad choice for the modern web. But I don't think the suggested solution to prevent wrapping the date column is improving the situation and only adds edge cases where space is distributed unnaturally.

Masterjun3 commented 1 year ago

Fixed, by redesigning the whole thing in #1514 .

YoshiRulz commented 1 year ago

May still be an issue with the userfiles table.