kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.36k stars 128 forks source link

Ensuring input modals have a fixed width #324

Closed fabiospampinato closed 1 year ago

fabiospampinato commented 1 year ago

IMO input modals should have a fixed width, like Spotlight, otherwise interacting with them is a little weird because there's an unnecessary layout shift.

When I first open the modal I see this, not even the entire placeholder fits:

Screen Shot 2023-02-03 at 02 51 31
fabiospampinato commented 1 year ago

I've restarted the computer and now the width seems fixed, I'm not sure why it works differently now 🤔

fabiospampinato commented 1 year ago

Oh what changed is that previously I was setting inputPlaceholder, while now I'm only setting text.

kasper commented 1 year ago

Yes, the input modal width should be fixed. Likely the constrain doesn’t work properly if you only set inputPlaceholder. Thanks for reporting!

kasper commented 1 year ago

There was a layout issue depending on what properties were set initially. This should now be fixed in master.