A visual representation would have been better so I will know what you are trying to achieve. But I think u should use q-toolbar in place of the layout B