Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
add padding and background remover from layout to show real block, ba…
Browse files Browse the repository at this point in the history
…sed on #44, #4, #63
  • Loading branch information
shahryarjb committed Mar 24, 2023
1 parent 6b99c81 commit cc4e52c
Show file tree
Hide file tree
Showing 5 changed files with 226 additions and 191 deletions.
4 changes: 4 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
@apply flex flex-row bg-gray-200 border-2 justify-between items-stretch border-dashed border-gray-200 rounded-tl-none rounded-md p-5 hover:border-2 hover:border-dashed hover:duration-300 duration-1000 lg:px-1 relative shadow-md;
}

.create-layout-pure {
@apply flex flex-row justify-between items-stretch relative;
}

.create-section {
@apply flex flex-col justify-between items-stretch min-h-[200px] w-full border border-dashed border-gray-400 p-1;
}
Expand Down
6 changes: 6 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ Hooks.dragAndDropLocation = {
html: bodyDOM.innerHTML,
});
});

this.handleEvent('clean_layout_default_style', ({ block_id }) => {
const layoutDOM = document.getElementById(`layout-${block_id}`);
layoutDOM.classList.toggle('create-layout');
layoutDOM.classList.toggle('create-layout-pure');
});
},
};

Expand Down
Loading

0 comments on commit cc4e52c

Please sign in to comment.