There was an error while loading. Please reload this page.
1 parent 48bf282 commit 57ace66Copy full SHA for 57ace66
devtools/src/panel/components/PiPContainer.vue
@@ -17,8 +17,8 @@ const colorTheme = computed(() => {
17
18
const pipContainerHeight = useLocalStorage('pinia-colada-devtools-pip-container-height', 400)
19
20
-// ensure the height it less than 80% of the screen height
21
-pipContainerHeight.value = Math.min(pipContainerHeight.value, window.innerHeight * 0.8)
+// ensure the height is between 20% and 80% of the screen height
+pipContainerHeight.value = Math.min(Math.max(pipContainerHeight.value, window.innerHeight * 0.2), window.innerHeight * 0.8)
22
23
// TODO: refactor into CSS v-bind
24
const containerStyle = computed(() => ({ height: `${pipContainerHeight.value}px` }))
0 commit comments