Fix styles in search/replace dialog again

TBR

The styles got slightly broken again, probably after #3581.