fix: use Viewer for public whiteboard shares on NC29 #890
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Public share links to whiteboard files on Nextcloud 29 render inside the legacy
files_sharingpublic preview container (#preview/#imgframe), which has its own header/footer and constrained layout. This causes the whiteboard to look boxed and misaligned compared to NC32+.This change opens public whiteboard shares via the Nextcloud Viewer modal for a consistent fullscreen experience.
Root Cause
On NC29, the whiteboard embeds inside
#imgframewhich has constrained dimensions (height: 75%,width: 80%,padding: 32px). NC32+ rewrotefiles_sharingto automatically trigger Viewer for file shares, but NC29'spublic.jsonly auto-opens Viewer for image/video/audio - not custom MIME types like whiteboard.A CSS-only fix doesn't work because hiding the header breaks the
height: 100%cascade throughout the legacy template structure.Solution
viewerApi.openWith('whiteboard', ...)to open in a fullscreen Viewer modalScope