Show HN: UI pattern for truncating long integers/strings in tables
github.com
github.com
Take this example data:
999995
999998
999999
Imagine we have 5 display digits available; the default method is to display 99999
99999
99999
But it might be better to show the distinguishing digit. eg: 99..5
99..8
99..9
However I don't know what the best design or display pattern for that would be.For example:
select sum(sales) from tablexyz where region = 'West'
select sum(sales) from tablexyz where region = 'South'
In this case I think we want the distinguishing word or token, and we can fill the remaining space with text from the left, eg "select sum(sales)..'South'".I could write out some javascript for this, but IANA front-end or css expert.