diff --git a/src/assets/icons/Editor/select-all.svg b/src/assets/icons/Editor/select-all.svg index 91c69ea..e07a433 100644 --- a/src/assets/icons/Editor/select-all.svg +++ b/src/assets/icons/Editor/select-all.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/extensions/listitem/listItem.ts b/src/extensions/listitem/listItem.ts index 475612c..b0019d9 100644 --- a/src/extensions/listitem/listItem.ts +++ b/src/extensions/listitem/listItem.ts @@ -1,4 +1,4 @@ -import { Button, DropDownEventProps, Dropdown } from '@editor/ui' +import { Button, Dropdown, type DropDownEventProps } from '@editor/ui' import arrowDropDown from '@icons/arrow-drop-down-line.svg' import listFullIcon from '@icons/list-check.svg' import listOrederedIcon from '@icons/list-ordered-2.svg' diff --git a/src/extensions/table/table.ts b/src/extensions/table/table.ts index 2a94349..e546485 100644 --- a/src/extensions/table/table.ts +++ b/src/extensions/table/table.ts @@ -95,6 +95,12 @@ function tableDropDown({ editor }: ButtonEventProps) { dropdown.setDropDownContent(createDropDownContent(editor)) + window.addEventListener('click', function (event: Event) { + event.stopPropagation() + if (dropdown.isOpen) { + dropdown.off() + } + }) return dropdown } diff --git a/src/public/style.css b/src/public/style.css index 06e0d13..8e74ce0 100644 --- a/src/public/style.css +++ b/src/public/style.css @@ -210,7 +210,9 @@ width: 21px; height: 24px; color: #fff; - margin: -4px -3px + margin: -7px -2px; + padding-right: 1px; + } .resize-cursor {