romannurik / Sketch-FlowExporter

A Sketch prototype HTML exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an option for resizing browser window to prototype size on load, or center prototype on dark background.

ozgurgunes opened this issue · comments

Thanks for this awesome plugin which helps us to stay away from Sketch Cloud. But left aligned prototypes look awful in browser window.

Yeah, this is something that should definitely be added. I'm thinking there would be some in-page options you could open up in the exported file, as opposed to an option during export. Any thoughts on that?

Maybe, but sometimes clients get confused and think that prototype controls are part of the design :)

Oh, I'd imagine they'd be hidden by default to avoid confusion. Designers could press a special key to show the options. (I'm hoping to avoid extra steps during export for now)

Would love the ability to center the prototype, change bg color and export @2x. Other than that, this plugin is perfect. Thanks again!

For what it's worth -- it's pretty easy to customize the index.html file to center the .artboard and adjust the background-color. Quick fix, doesn't help the @2x images, though.

Am planning some preferences set at the document or global level, will add 2x and some form of viewport customization (not sure exactly how much yet)

FYI, artboards are now centered (and zoomed to fit). The background is still white though... can add an option to change it if that request gains popularity.