Skip to content

[Feature]: Set zoom factor for web widgets #3490

Description

@ashley4234

Feature description

Feature description

Web widgets always render at 100%, and there's no way to change it.
Ctrl +/- doesn't work inside a web block, and zooming the Wave window
scales the terminal blocks too.

I keep an internal dashboard in a web widget next to some terminals.
It assumes a full-width browser, so at 100% it's mostly horizontal
scrolling — around 80% would fit the block, but I can't set that
without shrinking everything else.

A meta key like web:zoomfactor (float, default 1.0) would cover it:

"meta": {
    "view": "web",
    "url": "http://localhost:8080/",
    "web:zoomfactor": 0.8
}

Electron's setZoomFactor() takes 1.0 as 100%, so the config value
reads naturally.

Happy to attempt a PR if this seems reasonable — looks like it'd follow
the same shape as web:useragenttype (#2454).

Implementation Suggestion

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageNeeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions