impulse icon indicating copy to clipboard operation
impulse copied to clipboard

[feature request] resizable window / mount on different size

Open tefkah opened this issue 1 year ago • 3 comments

Hi! Love Impulse, very good 10/10

Could be 11/10 though if I was able to resize the window or mount it to the side of the window like you can do the devtools.

On my MacBook I often find that the Impulse dev takes up juuuuuuuust too much space and I'd want it to be slightly smaller.

tefkah avatar Sep 26 '22 18:09 tefkah

Hey,

Thanks for your request!

It will take a while to implement a bullet-proof draggable experience, let alone mount it on the side.

However, I've just shipped a config option you can use to control the height of that bottom panel. Available in 0.3.0.

if (process.env.NODE_ENV === 'development') {
-  import('@impulse.dev/runtime').then((impulse) => impulse.run())
+  import('@impulse.dev/runtime').then((impulse) => impulse.run({
+    config: { panel: { height: 300 } }
+  }))
}

kirillrogovoy avatar Sep 29 '22 14:09 kirillrogovoy

^^^ doesn't work as of 0.4.5

sergeylukin avatar Jul 26 '23 20:07 sergeylukin

Sorry to hear that!

Unfortunately, I kind of abandoned working on this project even though I still use it when working on front-end stuff.

If you decide to fix it, I'd be happy to accept a PR.

kirillrogovoy avatar Jul 27 '23 07:07 kirillrogovoy