From e5c35aea1b00c514baf99f29004bffcf5bfed203 Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Fri, 2 Jun 2023 15:50:54 +0300 Subject: [PATCH] added empty divs for dnd --- app/templates/book/collection_view.html | 7 +- .../components/collection_context_menu.html | 6 +- .../book/components/section_tab_content.html | 5 +- .../sub_collection_tab_content.html | 25 +++- src/drag_and_drop.ts | 125 ++++++++++++++++-- 5 files changed, 146 insertions(+), 22 deletions(-) diff --git a/app/templates/book/collection_view.html b/app/templates/book/collection_view.html index ecffcf8..7b34077 100644 --- a/app/templates/book/collection_view.html +++ b/app/templates/book/collection_view.html @@ -40,7 +40,12 @@ {% for collection in book.versions[-1].children_collections if not collection.is_root and not collection.is_deleted %} -
+
- {% endif %} - {% endif %} - {% if access_to_create_section %} + {% endif %} + {% endif %} + {% if access_to_create_section %} {% if collection.active_children|length ==0 or collection.active_children|length ==0 and collection.is_leaf %}