Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Widget display Issue
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: Widget display Issue (Read 3102 times)
Demusman
Sr. Member
Posts: 304
Karma: 13
Widget display Issue
«
on:
August 02, 2022, 05:12:35 pm »
Interface statistics does not fit when using 3 columns and it does not give the option to scroll over.
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Widget display Issue
«
Reply #1 on:
August 02, 2022, 08:21:13 pm »
Add Gateways, Services and Traffic Graphs too.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #2 on:
August 02, 2022, 09:59:45 pm »
If you want to play whack-a-mole with the CSS good luck. Esp. scrolling containers on a dashboard is pretty nasty UX.
If you want to use 3 columns but they don't fit your screen that's also a reason why less column options exist.
Cheers,
Franco
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Widget display Issue
«
Reply #3 on:
August 03, 2022, 02:55:48 am »
That's you answer?? Really?
Don't worry about fixing it, just use 2 columns instead.
Nice.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #4 on:
August 03, 2022, 09:28:34 am »
Two answers really. Both of them very empowering.
Cheers,
Franco
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Widget display Issue
«
Reply #5 on:
August 03, 2022, 12:05:05 pm »
Emporing the fact that OPNsense UI will always be a mess.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #6 on:
August 03, 2022, 03:04:59 pm »
If you want to be obnoxious: fine. If you want to be helpful nobody is stopping you from doing a PR and putting your expertise on display here to good use instead.
Cheers,
Franco
Logged
Demusman
Sr. Member
Posts: 304
Karma: 13
Re: Widget display Issue
«
Reply #7 on:
August 03, 2022, 03:16:25 pm »
Obnoxious??
You mean like saying "yeah that feature exists but if it doesn't work right, don't use it."
Like that??
You can keep posting all you want, you've already proven my point.
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Widget display Issue
«
Reply #8 on:
August 03, 2022, 04:39:49 pm »
I never cease to wonder why some people ask questions or ask for help in this manner (is it supposed to help or is it supposed to make the product better?)
Code:
[Select]
opnsense-patch -a kulikov-a fb36aed
is this what you talking about?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #9 on:
August 03, 2022, 05:30:43 pm »
Technically
https://github.com/kulikov-a/core/commit/fb36aed
is ok, but I don't think the scroll really helps and the next person will complain about the change.
Ideally I'd like to avoid the table overflow and instead squash the contents further but I think that is a deeper issue that eventually requires replacing and redoing the dashboard and its widgets.
Cheers,
Franco
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Widget display Issue
«
Reply #10 on:
August 03, 2022, 05:44:59 pm »
yep, its hard to guess, because @Demusman did not provide screenshot or some but i think that scroll is helps not to break elements in weird cases like long interfaces descriptions ("no scroll" test screenshot attached) - just as additional protection
«
Last Edit: August 03, 2022, 05:47:29 pm by Fright
»
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #11 on:
August 03, 2022, 08:30:52 pm »
Yep this is a general table-tag related oddity. div-tags would be a lot better but it takes too much time to spend core resources on this. (I have tried before and failed and it's ok to admit that.)
Cheers,
Franco
Logged
axsdenied
Full Member
Posts: 199
Karma: 9
Re: Widget display Issue
«
Reply #12 on:
August 03, 2022, 09:30:20 pm »
I'll start with, I'm far from a CSS expert but perhaps a quick hack may be just set the minimum width of each widget, weighted against number of columns. i.e. in 3 column mode, which I also run, it isn't until about 1496px, full window width, that the interface widget begins to peep out of it's form. In these conditions, set minimum widget with, preventing it from shrinking and creating text bleed over.
Logged
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Widget display Issue
«
Reply #13 on:
August 04, 2022, 08:57:55 am »
@franco fair enough. what about $.sortable->gridstack.js migration then?
(
https://gridstackjs.com/
)
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Widget display Issue
«
Reply #14 on:
August 04, 2022, 10:02:53 pm »
It looks shiny. But I don't want to encourage a POC because the issue is getting everything converted. Most legacy widgets should probably be shelved and rebuilt first and then rework the dashboard itself if none of the old widgets code is left.
Cheers,
Franco
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
Widget display Issue