Skip to content

Commit

Permalink
Merge pull request #133 from frappe/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 authored Apr 17, 2024
2 parents 3547567 + c87b997 commit 9ff5eda
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder/builder/doctype/builder_page/builder_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def get_style_file_path():


def escape_single_quotes(text):
return text.replace("'", "\\'")
return (text or "").replace("'", "\\'")


# def generate_tailwind_css_file_from_html(html):
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/BuilderCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="overlay absolute" id="overlay" ref="overlay" />
<Transition name="fade">
<div
class="absolute bottom-0 left-0 right-0 top-0 z-50 w-full bg-gray-200 p-10 dark:bg-zinc-800"
class="absolute bottom-0 left-0 right-0 top-0 z-40 w-full bg-gray-200 p-10 dark:bg-zinc-800"
v-show="store.settingPage"></div>
</Transition>
<BlockSnapGuides></BlockSnapGuides>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/utils/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ class Block implements BlockOptions {
if (childBlock.isText()) {
childBlock.makeBlockEditable();
}

if (childBlock.getStyle("position")) {
if (!this.getStyle("position")) {
this.setStyle("position", "relative");
}
}

return childBlock;
}
removeChild(child: Block) {
Expand Down

0 comments on commit 9ff5eda

Please sign in to comment.