server icon indicating copy to clipboard operation
server copied to clipboard

Add the possibility to collapse notifications

Open sanderkoenders opened this issue 9 months ago • 1 comments

Is your feature request related to a problem? Please describe. I have been using Gotify for the past couple of weeks and it has been serving me very well. The only minor annoyance I have, which is unrelated to Gotify, is the notifications I receive from my Proxmox backups. It is a very lengthy message because the logs are attached.

Describe the solution you'd like The solution I was thinking about is adding the possibility to collapse the notification when it is longer than x characters. Ideally there would be a "view more" button that allows to show the collapsed contents.

Describe alternatives you've considered I have considered turning off Proxmox backup notifications altogether but unfortunately then I would lose the lion share of useful information.

sanderkoenders avatar Apr 14 '25 06:04 sanderkoenders

👍, seems good, we can probably collapse after 20 or so lines.

jmattheis avatar Apr 23 '25 19:04 jmattheis

Assuming this is in the Messages area of the UI, this one should be simple to implement using existing Material components. Please let me know if that is the case and I can submit a PR for it asap.

jeremygooch avatar Jun 26 '25 20:06 jeremygooch

Yeah, it should be there. Additionally the height of the Message component has to be updated in the parent component when it's collapsed / uncollapsed. so that the virtual list works correctly.

jmattheis avatar Jun 29 '25 15:06 jmattheis