Skip to content

Word viewer: refit the page when its panel is resized #2219

Closed

Description

@MODSetter

The Word viewer works out its fit-to-width zoom once, when the file loads (docx-viewer.tsx, counting the 232 px comment gutter when the file has comments). Since #2195 the right panel resizes (272–560 px, 400–640 px, wide views up to 800 px), so dragging its edge leaves the page at its old zoom. Studio's PDF viewer refits at page width through a ResizeObserver until the reader zooms by hand.

Done when: the Word viewer refits on a panel resize the same way, keeps a zoom the user set by hand, and the Known gap line in docs/architecture/studio.md is gone.

Activity

  1. MannXo commented on Oct 12, 2026

    @MannXo
    Contributor

    I can pick this up. Is it available?

  2. added a commit that references this issue on Oct 12, 2026
    9689025
  3. MODSetter commented on Oct 12, 2026

    @MODSetter
    OwnerAuthor

    Fixed by #2233, merged into dev, by @MannXo.

    The Word viewer now refits its page whenever its panel is resized, the way the PDF viewer does, until the user zooms by hand with Ctrl+wheel or the zoom buttons. Opening a new document fits it again.

    The Known gap line in docs/architecture/studio.md is gone in the same PR. Closing by hand: GitHub only auto-closes on a merge to the default branch, and we merge through dev.

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

    UXdesktopSurfSense desktop app (surfsense_local)frontendhelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions