better UI for TextFieldWithHistory: prevent it from being too wide when drop-down list is shown