diff --git a/examples/react/start/package.json b/examples/react/start/package.json index 84ead67f..5af916f2 100644 --- a/examples/react/start/package.json +++ b/examples/react/start/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tailwindcss/vite": "^4.0.6", - "@tanstack/devtools-event-client": "workspace:*", + "@tanstack/devtools-event-client": "^0.4.0", "@tanstack/react-devtools": "^0.9.2", "@tanstack/react-router": "^1.132.0", "@tanstack/react-router-devtools": "^1.132.0", diff --git a/packages/devtools/src/context/devtools-store.ts b/packages/devtools/src/context/devtools-store.ts index 94e20032..1a258281 100644 --- a/packages/devtools/src/context/devtools-store.ts +++ b/packages/devtools/src/context/devtools-store.ts @@ -112,10 +112,12 @@ export const initialState: DevtoolsStore = { triggerHidden: false, customTrigger: undefined, }, - state: { - activeTab: 'plugins', - height: 400, - activePlugins: [], - persistOpen: false, - }, +state: { + activeTab: 'plugins', + height: typeof window !== 'undefined' + ? Math.min(400, Math.max(300, window.innerHeight * 0.5)) + : 400, + activePlugins: [], + persistOpen: false, +}, }