Idea is to remove the gaps between inline elements, correct? Have you tried using a flex box layout in the dialog? I think it can also be done if you put `float:left` or `display:inline-block` on everything.