Nice eye. Thanks for this... good enhancement. A good option for display, as it depends on what kind of numbers are being displayed and compared (fractions vs. big whole numbers).
In my case I was thinking of long strings such as SQL queries. We would show a few initial words, but in SQL they're typically the same.
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.
3 comments
[ 4.7 ms ] story [ 20.5 ms ] threadTake this example data:
Imagine we have 5 display digits available; the default method is to display But it might be better to show the distinguishing digit. eg: However I don't know what the best design or display pattern for that would be.For example:
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.