edgafner / GBrowser

A Browser embedded in your IDE
Apache License 2.0
73 stars 18 forks source link

How to set up a mobile device to access web pages #288

Open tlerbao opened 1 month ago

tlerbao commented 1 month ago

At present, it seems that the webpage is accessed by a pc device. How to set it up to use a mobile device (mobile phone) to access it?

Jonatha1983 commented 1 month ago

@tlerbao Hi

Didn't understand what you are asking?

tlerbao commented 1 month ago

CleanShot 2024-07-12 at 19 39 32@2x Sorry, my English is terrible. What I mean is, how do I simulate access using a mobile device? How should I describe it?

Jonatha1983 commented 1 month ago

I am sorry still don't get it.

You want to use the gbrowser toolwindow from a mobile?

This is only for IDE - so again I don't understand what you are trying to do here exactly

tlerbao commented 1 month ago

@Jonatha1983 Sorry,

I don't want to use Gbrowser on my phone. I want the website to be displayed in the form of a mobile device.

It seems like the window is just resized, but it still shows the PC version of the website.

There are some differences between accessing a website on a PC and on a mobile device, such as dragging. I tried setting the UserAgent, but it didn't work.

Jonatha1983 commented 1 month ago

Ah ok now o got you

But unfortunately I don't know of a way to do it.

How would you do it with a normal browser?

tlerbao commented 1 month ago

Chrome's built-in developer tools can switch by using command + shift + m, allowing you to select different devices like iPhone 12/11/6, etc. Can't Gbrowser do this?

I recorded a video.

https://github.com/user-attachments/assets/ed0e1bb3-5e7e-411c-85e8-18e815ba7f29

Jonatha1983 commented 1 month ago

I don't see this feature in the plugin, so I need to investigate further.

I'll let you know if I find something or if it needs to be implemented.

tlerbao commented 1 month ago

Thank you, great plugin