diff --git a/packages/ui/src/components/ExpandCollapse.svelte b/packages/ui/src/components/ExpandCollapse.svelte
index 96b69b0192..8187feb2be 100644
--- a/packages/ui/src/components/ExpandCollapse.svelte
+++ b/packages/ui/src/components/ExpandCollapse.svelte
@@ -15,25 +15,20 @@
-
diff --git a/packages/ui/src/utils.ts b/packages/ui/src/utils.ts
index d2382a4547..e9f3d490fb 100644
--- a/packages/ui/src/utils.ts
+++ b/packages/ui/src/utils.ts
@@ -16,7 +16,6 @@
// import type { Metadata } from '@anticrm/platform'
import type { Metadata } from '@anticrm/platform'
import { setMetadata } from '@anticrm/platform'
-import { Writable, writable } from 'svelte/store'
export function setMetadataLocalStorage (id: Metadata
, value: string | null): void {
if (value != null) {
@@ -34,14 +33,3 @@ export function fetchMetadataLocalStorage (id: Metadata): string | null
}
return value
}
-
-export function syncHeight (element: HTMLElement | undefined): Writable {
- return writable(0, (set) => {
- if (element != null) {
- const observer = new ResizeObserver(() => set(element.offsetHeight))
- observer.observe(element)
-
- return () => observer.disconnect()
- }
- })
-}
diff --git a/plugins/tracker-resources/src/components/issues/edit/SubIssueList.svelte b/plugins/tracker-resources/src/components/issues/edit/SubIssueList.svelte
index 431a6f4761..bd5738ed58 100644
--- a/plugins/tracker-resources/src/components/issues/edit/SubIssueList.svelte
+++ b/plugins/tracker-resources/src/components/issues/edit/SubIssueList.svelte
@@ -65,7 +65,8 @@
draggingIndex && index === hoveringIndex}
animate:flip={{ duration: 400 }}
draggable={true}
on:click|self={() => openIssue(issue)}
@@ -125,17 +126,24 @@
}
}
- &.is-dragging {
- &::before {
- position: absolute;
- content: '';
- color: var(--theme-bg-color);
- opacity: 0.4;
- inset: 0;
- }
+ &.is-dragging::before {
+ position: absolute;
+ content: '';
+ background-color: var(--theme-bg-color);
+ opacity: 0.4;
+ inset: 0;
}
- &.is-dragged-over {
+ &.is-dragged-over-up::before {
+ position: absolute;
+ content: '';
+ inset: 0;
+ border-top: 1px solid var(--theme-bg-check);
+ }
+ &.is-dragged-over-down::before {
+ position: absolute;
+ content: '';
+ inset: 0;
border-bottom: 1px solid var(--theme-bg-check);
}
}
diff --git a/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte b/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
index 08d13ff204..ae7037fd69 100644
--- a/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
+++ b/plugins/tracker-resources/src/components/issues/edit/SubIssues.svelte
@@ -35,7 +35,6 @@
async function handleIssueSwap (ev: CustomEvent<{ fromIndex: number; toIndex: number }>) {
if (subIssues) {
const { fromIndex, toIndex } = ev.detail
- console.log('index', fromIndex, toIndex)
const [prev, next] = [
subIssues[fromIndex < toIndex ? toIndex : toIndex - 1],
subIssues[fromIndex < toIndex ? toIndex + 1 : toIndex]