From 0d22d4ab4dd4ecfa859e014cdde2d7582c74c4f0 Mon Sep 17 00:00:00 2001 From: Ashley Stanton-Nurse Date: Tue, 27 Aug 2024 14:20:34 -0700 Subject: [PATCH] change default splitter orientation when the setting has not been set (#1946) --- .../SettingsPane/__snapshots__/SettingsPane.test.tsx.snap | 2 +- src/Shared/StorageUtility.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap index 633afd20e..ed67f2665 100644 --- a/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap +++ b/src/Explorer/Panes/SettingsPane/__snapshots__/SettingsPane.test.tsx.snap @@ -238,7 +238,7 @@ exports[`Settings Pane should render Default properly 1`] = ` }, ] } - selectedKey="vertical" + selectedKey="horizontal" styles={ { "flexContainer": [ diff --git a/src/Shared/StorageUtility.ts b/src/Shared/StorageUtility.ts index 952bcd9ac..1cea30145 100644 --- a/src/Shared/StorageUtility.ts +++ b/src/Shared/StorageUtility.ts @@ -57,10 +57,10 @@ export const getRUThreshold = (): number => { export const getDefaultQueryResultsView = (): SplitterDirection => { const defaultQueryResultsViewRaw = LocalStorageUtility.getEntryString(StorageKey.DefaultQueryResultsView); - if (defaultQueryResultsViewRaw === SplitterDirection.Horizontal) { - return SplitterDirection.Horizontal; + if (defaultQueryResultsViewRaw === SplitterDirection.Vertical) { + return SplitterDirection.Vertical; } - return SplitterDirection.Vertical; + return SplitterDirection.Horizontal; }; export const DefaultRUThreshold = 5000;