Files
open-webui/src/lib/components
G30 404a328a58 fix: PDF and Office preview zoom drifts, stalls, and loses track of its label (#33836)
Fixes several zoom problems in the Files pane preview (pdf, docx, and
pptx, which the backend converts to PDF):

- Switching tabs and back reset the page to 100% while the label kept the
  old percentage. Hidden tabs measure 0 px wide, so PdfPagesPreview
  collapsed its thumbnails; their return resized the viewer, which
  re-rendered every page. PdfPagesPreview now keeps its layout while hidden,
  so the chosen zoom stays.
- Changing slides in a pptx reset the zoom to 100% while the label kept
  the old value. A slide change now carries the zoom and position over to
  the new slide.
- A pane resize rebuilt the zoom at 100% but left the label at the old
  value. renderAllPages now resets the label with it.
- On pptx slides, zooming drifted off-center and stopped at about 244%.
  The element panzoom transforms was flex-centered inside its container,
  while panzoom measures bounds and zoom anchors from the container's
  top-left corner. That element now fills the container and centers the
  slide inside it, so the coordinates match the screen.
- Resetting from a low zoom left the page off to the side, and from a
  stalled high zoom it could leave the page enlarged under a 100% label.
  The reset moved and zoomed through panzoom's bounds check, which skips
  the scale change when it adjusts the position. The reset now rebuilds
  the panzoom instance, as every render already does.
2026-11-07 16:49:17 +09:00
..
2026-11-06 13:23:52 +09:00
2026-10-07 15:40:44 +04:00
2026-10-31 16:50:01 +09:00
2026-11-06 23:28:55 +09:00
2026-11-01 20:15:19 +09:00
2026-11-07 13:03:41 +09:00
2026-11-05 22:25:44 +09:00
2026-07-14 04:15:20 -04:00
2026-11-03 17:36:03 +09:00