mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-14 05:40:16 +02:00
fix assistant drag transform effect (#2052)
This commit is contained in:
parent
0bde66a888
commit
5bfdecacad
@ -52,7 +52,9 @@ function DraggableAssistantListItem(props: any) {
|
|||||||
} = useSortable({ id: props.assistant.id.toString() });
|
} = useSortable({ id: props.assistant.id.toString() });
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
transform: CSS.Transform.toString(transform),
|
transform: transform
|
||||||
|
? `translate3d(${transform.x}px, ${transform.y}px, 0)`
|
||||||
|
: undefined,
|
||||||
transition,
|
transition,
|
||||||
opacity: isDragging ? 0.9 : 1,
|
opacity: isDragging ? 0.9 : 1,
|
||||||
zIndex: isDragging ? 1000 : "auto",
|
zIndex: isDragging ? 1000 : "auto",
|
||||||
|
@ -94,7 +94,9 @@ export function DraggableAssistantCard(props: {
|
|||||||
} = useSortable({ id: props.assistant.id.toString() });
|
} = useSortable({ id: props.assistant.id.toString() });
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
transform: CSS.Transform.toString(transform),
|
transform: transform
|
||||||
|
? `translate3d(${transform.x}px, ${transform.y}px, 0)`
|
||||||
|
: undefined,
|
||||||
transition,
|
transition,
|
||||||
opacity: isDragging ? 0.9 : 1,
|
opacity: isDragging ? 0.9 : 1,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user