79244772

Date: 2024-12-02 16:12:47
Score: 1
Natty:
Report link

No extra coding, just change some configs.

src-tauri/tauri.conf.json

{
  ...
  "app": {
    "windows": [
      {
        ...
        "zoomHotkeysEnabled": true
      }
    ],
  },
  ...
}

src-tauri/capabilities/default.json

{
  ...
  "permissions": [
    ...
    "core:webview:allow-set-webview-zoom"
  ]
}

This is a pretty new feature and not yet well documented in the official docs. The VS Code plugin and config schema can be helpful.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: congtailai