Skip to content

Commit

Permalink
fix(editor): absolute items in correct width position center
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Nov 22, 2021
1 parent c7d2426 commit 585f911
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
const input = ref(entity.external?.comment?.raw || '')
const { style } = useDraggable(comment as any, {
initialValue: { x: window.innerWidth / 2, y: window.innerHeight / 3 },
initialValue: { x: window.innerWidth / 2 - 192, y: window.innerHeight / 3 },
onStart() {
if (onTextArea.value) return false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
const search = ref<HTMLElement | null>(null)
const { style } = useDraggable(finder as any, {
initialValue: { x: window.innerWidth / 2, y: window.innerHeight / 2 },
initialValue: { x: window.innerWidth / 2 - 120, y: window.innerHeight / 2 },
})
const onClose = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
const entry = ref<HTMLElement | null>(null)
const { style } = useDraggable(switcher as any, {
initialValue: { x: window.innerWidth / 2, y: window.innerHeight / 2 },
initialValue: { x: window.innerWidth / 2 - 120, y: window.innerHeight / 2 },
})
const onClose = () => {
Expand Down

0 comments on commit 585f911

Please sign in to comment.