opencode-agent[bot] před 3 měsíci
rodič
revize
4a976482b1

+ 1 - 4
packages/app/src/components/settings-general.tsx

@@ -753,10 +753,7 @@ export const SettingsGeneral: Component = () => {
             description={language.t("settings.general.row.pinchZoom.description")}
           >
             <div data-action="settings-pinch-zoom">
-              <Switch
-                checked={pinchZoom.latest}
-                onChange={onPinchZoomChange}
-              />
+              <Switch checked={pinchZoom.latest} onChange={onPinchZoomChange} />
             </div>
           </SettingsRow>
 

+ 1 - 3
packages/desktop/src/main/windows.ts

@@ -416,9 +416,7 @@ function wireZoom(win: BrowserWindow) {
   win.webContents.on("zoom-changed", (event, zoomDirection) => {
     event.preventDefault()
     if (pinchZoomEnabled.get(win)) {
-      win.webContents.setZoomFactor(
-        clampZoom(win.webContents.getZoomFactor() + (zoomDirection === "in" ? 0.2 : -0.2)),
-      )
+      win.webContents.setZoomFactor(clampZoom(win.webContents.getZoomFactor() + (zoomDirection === "in" ? 0.2 : -0.2)))
       updateZoom(win)
       return
     }