diff --git a/packages/web/src/jsontree/JSONTree.svelte b/packages/web/src/jsontree/JSONTree.svelte index 13023326c..fddfda32e 100644 --- a/packages/web/src/jsontree/JSONTree.svelte +++ b/packages/web/src/jsontree/JSONTree.svelte @@ -6,6 +6,7 @@ import _ from 'lodash'; import { copyTextToClipboard } from '../utility/clipboard'; import { openJsonLinesData } from '../utility/openJsonLinesData'; + import { useSettings } from '../utility/metadataLoaders'; setContext('json-tree-context-key', {}); @@ -23,6 +24,9 @@ export let isInserted = false; export let isModified = false; + const settings = useSettings(); + $: wrap = $settings?.['behaviour.jsonPreviewWrap']; + setContext('json-tree-default-expanded', expandAll); if (slicedKeyCount) setContext('json-tree-sliced-key-count', slicedKeyCount); @@ -66,6 +70,7 @@ class:isDeleted class:isInserted class:isModified + class:wrap > + +
When you single-click or select a file in the "Tables, Views, Functions" view, it is shown in a preview mode and reuses an existing tab (preview tab). This is useful if you are quickly browsing