maciejhirsz / kobold

Easy declarative web interfaces.
https://docs.rs/kobold/
Mozilla Public License 2.0
385 stars 7 forks source link

Update csv_editor with rotated table option #61

Closed ltfschoen closed 1 year ago

ltfschoen commented 1 year ago

use CSS to rotate table so it's shown as:

Screen Shot 2023-04-05 at 5 07 59 pm

instead of as:

Screen Shot 2023-04-05 at 5 10 41 pm

reference: https://stackoverflow.com/a/5800696

maciejhirsz commented 1 year ago

I thought about it and I don't think I want to merge this.

The columns being, well, columns makes more sense in most cases. I gather your details table in the invoice example you're working on is different, but that should be handled there. If it was a setting to flip here I'd maybe reconsider, but even then I think CSS isn't the best way of doing it since it breaks border-collapse rules.

ltfschoen commented 1 year ago

I understand. I think good decision to close as this change also makes it difficult to understand what's going on when debugging as the row and col values don't match with the UI