changed the config `minWidth` to `width` and added a test