How to set initial width of NSSearchToolbarItem

The default width of NSSearchToolbarItem is way too large. I want it to be similar to the Notes app.

Is there an official way to do this?

Setting maxSize seems to work, until I saw all kinds of layout constraint errors in the console while customising the toolbar, so that's apparently not the way to go.