From 60950ba7671bf7349cbdc5ff36c650ccb4f9e4b7 Mon Sep 17 00:00:00 2001 From: Mattia Del Franco Date: Fri, 6 Jan 2023 12:32:04 +0100 Subject: [PATCH] Updated default WindowPosition of NitroCardView from center to top_left --- src/common/card/NitroCardView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/card/NitroCardView.tsx b/src/common/card/NitroCardView.tsx index 236f615f..081d2230 100644 --- a/src/common/card/NitroCardView.tsx +++ b/src/common/card/NitroCardView.tsx @@ -11,7 +11,7 @@ export interface NitroCardViewProps extends DraggableWindowProps, ColumnProps export const NitroCardView: FC = props => { - const { theme = 'primary', uniqueKey = null, handleSelector = '.drag-handler', windowPosition = DraggableWindowPosition.CENTER, disableDrag = false, overflow = 'hidden', position = 'relative', gap = 0, classNames = [], ...rest } = props; + const { theme = 'primary', uniqueKey = null, handleSelector = '.drag-handler', windowPosition = DraggableWindowPosition.TOP_LEFT, disableDrag = false, overflow = 'hidden', position = 'relative', gap = 0, classNames = [], ...rest } = props; const elementRef = useRef(); const getClassNames = useMemo(() =>