diff --git a/web-common/src/features/dashboards/rows-viewer/RowsViewer.svelte b/web-common/src/features/dashboards/rows-viewer/RowsViewer.svelte
index 9e90b55b9c9..cead3e42356 100644
--- a/web-common/src/features/dashboards/rows-viewer/RowsViewer.svelte
+++ b/web-common/src/features/dashboards/rows-viewer/RowsViewer.svelte
@@ -1,18 +1,19 @@
-
+
{#if rows}
{
isOpen = !isOpen;
@@ -92,26 +100,45 @@
}
$: isLocal = $featureFlags.readOnly === false;
+
+ const rowsViewerLayout = writable({
+ value: INITIAL_HEIGHT_EXPANDED,
+ visible: true,
+ });
-
+
+
{#if isOpen}
-
+
{/if}
diff --git a/web-common/src/layout/drag.ts b/web-common/src/layout/drag.ts
index ac4b91276d5..f48ef7f57b4 100644
--- a/web-common/src/layout/drag.ts
+++ b/web-common/src/layout/drag.ts
@@ -1,4 +1,15 @@
-export function drag(node, params) {
+import type { Writable } from "svelte/store";
+import type { LayoutElement } from "./workspace/types";
+
+interface DragParams {
+ store: Writable
;
+ minSize?: number;
+ maxSize?: number;
+ reverse?: boolean;
+ orientation?: "horizontal" | "vertical";
+}
+
+export function drag(node, params: DragParams) {
const underlyingStore = params.store;
const minSize_ = params?.minSize || 300;
const maxSize_ = params?.maxSize || 440;
@@ -15,7 +26,9 @@ export function drag(node, params) {
moving = true;
}
- function mousemove(e) {
+ function mousemove(e: MouseEvent) {
+ e.preventDefault();
+
if (moving) {
let size;
if (orientation_ === "horizontal") {
@@ -29,6 +42,7 @@ export function drag(node, params) {
/** update the store passed in as a parameter */
underlyingStore.update((state) => {
state.value = space;
+ return state;
});
}
}
diff --git a/web-common/src/layout/navigation/Navigation.svelte b/web-common/src/layout/navigation/Navigation.svelte
index a23f17d7a73..db2353375dd 100644
--- a/web-common/src/layout/navigation/Navigation.svelte
+++ b/web-common/src/layout/navigation/Navigation.svelte
@@ -70,7 +70,6 @@
use:drag={{
minSize: DEFAULT_NAV_WIDTH,
maxSize: 440,
- side: "assetsWidth",
store: navigationLayout,
}}
/>