nextcloud / nextcloud/richdocuments
[Bug] Richdocuments interactive widget behavior
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 453
- Forks
- 147
- Avg merge
- 14h 54m
- Merged PRs (30d)
- 83
Description
Describe the bug
Several things are noticed when using an interactive widget (posting internal link to the file) in Talk:
-
z-indexvalue is high, widget shown above all other interactive elements:
https://github.com/nextcloud/richdocuments/blob/4920f50588bf8a16636b8b3f552e36387fccb261/src/view/Office.vue#L510 -
when mounted, widget closes the sidebar:
https://github.com/nextcloud/richdocuments/blob/4920f50588bf8a16636b8b3f552e36387fccb261/src/view/Office.vue#L277
To Reproduce
Steps to reproduce the behavior:
- Go to Files -> Sharing tab -> Internal link
- Go to Talk -> Any chat
- Post internal link to the chat
- Observe bugs described
Expected behavior
- z-index value around 10
- sidebar-close event is not triggered, if mounted as interactive widget
Screenshots
| 1 | 2 |
|---|---|
Client details:
- OS: Win 11
- Browser: Chrome
- Version: 30 (c.nc.com)
- Device: Web
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/view/Office.vue at the linked areas around lines 277 and 510. Reproduce the issue by posting an internal file link in a Talk chat, then inspect the widget's sidebar-close behavior and stacking order. Done means the widget does not close the sidebar when mounted interactively and uses a z-index around 10.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100