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, +}, }