Use an estimate of the text width to decide on assistant layout

It used to be based on the amount of items, which caused the significantly
larger, vertical version of the widget to show in cases where it was not
actually required.
Reviewed-By: Kevin Funk