Entities are broken into several rows in Lovelace

Hi all,

Since I upgraded HA (I do not remember exactly from which version), I realize that entities elements split to new line in lovelace UI.
For example:

type: entities
entities:
  - entity: binary_sensor.lumi_lumi_sensor_magnet_aq2_on_off
  - entity: sensor.ewelink_door_sensor_power

home_assistant_entities

Before the upgrade the entities was shown in one line for each.
Does anyone have any idea how I configure it to one line again?

Update all your custom cards. If I remember correctly it is something like the custom-template-row card that causes this to occur in other cards.

I deleted all unnecessary custom cards and it solved it.
Thanks you.