Skip to content

fix: avoid breaking card details modal when viewing attachment#7978

Merged
grnd-alt merged 1 commit into
mainfrom
fix-viewing-attachment
May 26, 2026
Merged

fix: avoid breaking card details modal when viewing attachment#7978
grnd-alt merged 1 commit into
mainfrom
fix-viewing-attachment

Conversation

@luka-nextcloud

@luka-nextcloud luka-nextcloud commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Hide the sidebar when viewing attachment if opening card in modal to avoid wrong sidebar position calculating in Viewer app

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required

Signed-off-by: Luka Trovic <luka@nextcloud.com>

@grnd-alt grnd-alt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works, but feels a little hacky because the modal is rendered as a sidebar which seems to not have been expected by this pr in viewer: nextcloud/viewer#3058

would be cleaner to eventually refactor the modal to not use the sidebar component, but lets merge this for now!

@grnd-alt grnd-alt merged commit c7bf61b into main May 26, 2026
36 checks passed
@grnd-alt grnd-alt deleted the fix-viewing-attachment branch May 26, 2026 14:06
@Aveyron-RetD

Copy link
Copy Markdown

Could i suggest a backport to 1.17 🙏

@luka-nextcloud

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@luka-nextcloud

Copy link
Copy Markdown
Contributor Author

/backport to stable34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Card modal becomes broken full-page state when opening attached file from Cloud, blocking further interaction

3 participants