ObsidianCustomFrames icon indicating copy to clipboard operation
ObsidianCustomFrames copied to clipboard

[Feature Request] Add "force mobile view" for custom frames

Open ocreturner opened this issue 3 years ago • 2 comments

It would be nice to have a force frame to mobile dimensions for our custom frames. this would avoid us to have to put in the mobile url of the websites. Some websites dont have simple mobile urls

ocreturner avatar Mar 31 '22 22:03 ocreturner

Hi, thanks for this suggestion! Honestly, I'm not sure what you mean exactly, and by extension, whether a feature like this would be possible.

Are you proposing a setting where the frame's size is forced to a smaller size that you would usually find on mobile devices in an attempt to activate CSS media queries that change the site's layout for smaller devices?

Or do you mean a setting that causes the iframe/webview to emulate a mobile device, but keep the frame's actual size the same (similarly to Chromium dev tools' device selector)?

Ellpeck avatar Jul 12 '22 20:07 Ellpeck

hi @Ellpeck ! i think at the time i was asking for a way to have the plugin to force a mobile view for all urls. some websites dont have simple mobile urls and you have to personally know them or look for them.

so yes the chromium dev tools to emulate a mobile device for the urls

this would help the side panels to be used for custom iframes

ocreturner avatar Jul 13 '22 04:07 ocreturner

This can be combined into one feature using #26

Ellpeck avatar Aug 21 '22 16:08 Ellpeck