Skip to content

Commit

Permalink
A smidge less flicker :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilvers committed Apr 2, 2024
1 parent f27e342 commit 84c6a4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/builder/src/python/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,10 @@ def _add_drop_zone_active_classes(self, component):
element = component.element if isinstance(component, Page) else component.element.parentNode

if isinstance(component, Container):
element.classList.add(f"drop-zone-active")
if len(component.content) > 0:
if len(component.content) == 0:
element.classList.add(f"drop-zone-active")

else:
element.classList.add(f"drop-zone-active-{self._insertion_mode}")

else:
Expand Down

0 comments on commit 84c6a4c

Please sign in to comment.