enzostvs HF Staff commited on
Commit
46cc0db
·
1 Parent(s): 6e3dd98

draggable by default

Browse files
Files changed (2) hide show
  1. src/lib/index.ts +1 -1
  2. src/lib/state/view.svelte.ts +1 -1
src/lib/index.ts CHANGED
@@ -1,4 +1,4 @@
1
  export const MAX_MODELS_PER_NODE = 5;
2
  export const MAX_TRENDING_MODELS = 6;
3
  export const MAX_SUGGESTIONS = 2;
4
- export const MAX_DEFAULT_MODELS = 1;
 
1
  export const MAX_MODELS_PER_NODE = 5;
2
  export const MAX_TRENDING_MODELS = 6;
3
  export const MAX_SUGGESTIONS = 2;
4
+ export const MAX_DEFAULT_MODELS = 2;
src/lib/state/view.svelte.ts CHANGED
@@ -1,3 +1,3 @@
1
  export const viewState = $state({
2
- draggable: localStorage.getItem('hf-playground-draggable-option') === 'true' ? true : false
3
  });
 
1
  export const viewState = $state({
2
+ draggable: localStorage.getItem('hf-playground-draggable-option') ?? true
3
  });