Skip to content

Size category width dynamically

Kai Uwe Broulik requested to merge work/kbroulik/dynamicctegory into master

In case all the category names are short, this leaves more room for the result text.

To reduce jumpiness of the UI, the category width is only reset when clearing the query. As a result, sometimes you still get a wide category column when you e.g. had a transient "Recently used file" result earlier in your query

This also changes the logic slightly to have the category label be always categoryWidth in size. Before it would subtract gridUnit from it. Should this new behavior be exposed in a property?


@alex

Before

Screenshot_20201222_115515

After

Screenshot_20201222_115452

Imho we should switch to a small spacing between category and label, because sometimes you get something awkward like this

Screenshot_20201222_115916

Edited by Kai Uwe Broulik

Merge request reports

Loading