server icon indicating copy to clipboard operation
server copied to clipboard

Request to add option to fill page or make reactive

Open NightHawkATL opened this issue 1 year ago • 7 comments

Is your feature request related to a problem? Please describe. I have a few notifications that are long and wide and I have to scroll to get to the horizontal scroll bar to see the wider notifications. image

Describe the solution you'd like It would be nice to have the notifications window fill the available area to allow for viewing the wider notifications either with an option to "fill" or have the notification area be reactive to the size of the screen or window viewing them.

Describe alternatives you've considered not using Gotify as there are others that offer this but aren't as easy to configure if there is no native Gotify support.

Additional context none at the moment as the above should suffice, but let me know if you have questions.

NightHawkATL avatar Nov 27 '24 14:11 NightHawkATL

Thanks for the ticket, I think it is because of many by-pixel max width styles in the code:

https://github.com/gotify/server/blob/63cfc1f0454261d589a1c0f76300d64abd107eab/ui/src/message/Message.tsx#L30-L32

https://github.com/gotify/server/blob/63cfc1f0454261d589a1c0f76300d64abd107eab/ui/src/common/DefaultPage.tsx#L11-L23

I am not familiar with frontend but maybe this can become a relative constraint? @jmattheis

eternal-flame-AD avatar Nov 27 '24 17:11 eternal-flame-AD

Yeah, I think we should have some min-width so that small messages keep the current design and only bigger messages get more width. Maybe something like: min(100%, max(fit-to-content, 700px)).

jmattheis avatar Dec 01 '24 12:12 jmattheis

Hi,

Same for me ! @jmattheis Do you think it's possible to add this modification to the next release ?

mranderson56 avatar Jan 08 '25 08:01 mranderson56

While you're waiting for the fix, you can do a little css injection image Under Firefox with the Stylus extension https://addons.mozilla.org/en-GB/firefox/addon/styl-us/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search Add or adapt this : @-moz-document url-prefix("https://YOUR URL/#/") { /* Insert code here... */ main.jss1 > main { max-width: 85% !important; margin: 0 !important; } .jss31 { max-width: 95% !important; } .jss36 > pre { height: auto; max-height: 300px; } .jss36 > pre > code { display: inline-block; height: auto; max-height: 300px; } .jss37 { height: auto; max-height: 400px; } }

use F5 to refresh the page, not the button on the page

slykereven avatar Jan 09 '25 09:01 slykereven

Hi @jmattheis , Any update about this issue ? Thanks.

mranderson56 avatar Jan 30 '25 08:01 mranderson56

Nope, no update on this.

jmattheis avatar Jan 30 '25 19:01 jmattheis

Even without extremely long notifications, small text based notifications from sonarr or whatever take up lots of screen space as well. Why not opt for a more compact list view; where the nav objects can stay at a normal size (maybe slightly smaller than they are right now) but the notification tiles in the middle are in a more compact list view, so you know more of what's going on at a glance?

I can only view a couple notifications on desktop, this UI looks like it's made for people with bad eyes or something, just compare it to the scaling of Github and you'll see the difference.

BerserkeR-Git avatar Jul 07 '25 14:07 BerserkeR-Git