dcppc/centillion

is the compact view supposed to be the default?

Closed this issue · 3 comments

If my chrome browser window is quite small, a centillion search will default to a compact view, like

screen shot 2018-11-02 at 2 12 11 pm

However, the search also defaults to the compact view every time I submit a new query, even if I have my browser in full screen mode. Is there a way to change the default to the non-compact view when the browser window is sufficiently large?

screen shot 2018-11-02 at 2 13 14 pm

This behavior is controlled by the dataTables javascript plugin's default behavior. It has bothered me too but I haven't looked into how and where to fix it. Will look into it and post to this issue with updates.

For background, the reason we added multiple columns for the results in the first place was to make results sortable by type.

When I looked into the dataTables column behavior with collapsing columns, I could not find clear explanations or information about this column-collapsing behavior.... I really don't understand it.

In the short term we can avoid fixing this by reducing the results table to a single column, and providing filtering by document type. (Screenshot below.) However, we will need to figure out this column-collapsing behavior eventually to fix the master list page.

screen shot 2018-11-02 at 23 20 44

bonus points for being responsive:

screen shot 2018-11-02 at 23 24 55

Have not forgotten about this - I've fixed the problems with the compact view by making the table a single column, and have tested it, but am not sure how to implement filtering/sorting by document type or score. But that problem will require more consideration - so I should just get the fixed merged and open a new issue for sorting/filtering.