Open dcavins opened 6 years ago
The way we're declaring widths on the post-revisions table does not appear to work with some themes. code: https://github.com/boonebgorges/buddypress-docs/blob/2.1.x/includes/addon-history.php#L409
post-revisions
According to Mozilla, most of the <colgroup> attributes have been deprecated or are obsolete as of HTML5: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col
<colgroup>
Nevertheless, if I change the column declarations to something like this:
<colgroup> <col> <col> <col width="35%"> <col width="30%"> <col width="20%"> </colgroup>
The result is much better:
However, I'm thinking that adding classes to the columns and applying widths via css would be the better answer (because it would be easier for end users to overrride--rather than hard-coded widths in a function).
Boone, do you have an opinion?
Thanks!
The actual diff table could be improved, too:
This was all copied directly out of a version of WordPress several years ago, so I have no objection to changing it to whatever looks better!
The way we're declaring widths on the
post-revisions
table does not appear to work with some themes. code: https://github.com/boonebgorges/buddypress-docs/blob/2.1.x/includes/addon-history.php#L409According to Mozilla, most of the
<colgroup>
attributes have been deprecated or are obsolete as of HTML5: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colNevertheless, if I change the column declarations to something like this:
The result is much better:
However, I'm thinking that adding classes to the columns and applying widths via css would be the better answer (because it would be easier for end users to overrride--rather than hard-coded widths in a function).
Boone, do you have an opinion?
Thanks!