[toolbar] fix wrapping mechanism for small screens