Alignment and unknown unicode characters #1

Open
opened 2023-06-05 16:10:59 +00:00 by moritz · 4 comments

It would be nice if the column size would automatically adapt to the content.
In my example the Domain and Server columns are cut off while the Version and Updates columns have too much space.

Further I use the urxvt terminal and many columns only show an unknown unicode sign (the square).

Example:

It would be nice if the column size would automatically adapt to the content. In my example the Domain and Server columns are cut off while the Version and Updates columns have too much space. Further I use the urxvt terminal and many columns only show an unknown unicode sign (the square). Example: ![](https://git.coopcloud.tech/attachments/0e8cc6cc-7036-4ad6-b32a-11e5dab08efe)
286 KiB
Owner

Ah yes, true on the width, it could adjust. Would a suitable solution be that the width of the column is the width of longest item + some padding? For the missing unicode character, yeh, perhaps Not An Emoji is more portable 😆 Thanks for the report!

Ah yes, true on the width, it could adjust. Would a suitable solution be that the width of the column is the width of longest item + some padding? For the missing unicode character, yeh, perhaps Not An Emoji is more portable 😆 Thanks for the report!
Author

I think a good solution to determine the column width would be to first sort the columns by the width of their longest item and then set the widths from the smallest columns up the the widest column by their width of longest item + some padding until the window size is reached. This way very long columns would not swallow up smaller columns.

I think a good solution to determine the column width would be to first sort the columns by the width of their longest item and then set the widths from the smallest columns up the the widest column by their width of longest item + some padding until the window size is reached. This way very long columns would not swallow up smaller columns.
Owner

@moritz nice! do you think this could result in a confusing UI/UX where columns end up being in different places when content length changes? also it doesn't take into account which columns are "more important", this could be subjective but I feel like leftmost stuff should be where the eyes land first?

@moritz nice! do you think this could result in a confusing UI/UX where columns end up being in different places when content length changes? also it doesn't take into account which columns are "more important", this could be subjective but I feel like leftmost stuff should be where the eyes land first?
Author

With sorting I don't mean to sort the order of displayed columns, only sort the values for the algorithm to calculate the column width.

With sorting I don't mean to sort the order of displayed columns, only sort the values for the algorithm to calculate the column width.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: decentral1se/cctuip#1
No description provided.