OPNsense 26.7.r2_3 Disk Widget

Started by MoonbeamFrame, July 11, 2026, 10:20:26 PM

Previous topic - Next topic
The disk widget on the RC's does not always display as expected.

This may be a red herring as I've just see this behavior on my local live firewall running 26.1.11_6.

My initial suspicion was the browser, Firefox 152.0.5 on Linux, But I see a similar behavior in Brave.

The difference is that in Brave I can see the box drawn oversized before collapsing back to the expected size. I subsequently saw the same with Firefox but after a few minutes.

I've seen this too and I have the suspicion this started after https://github.com/opnsense/core/commit/beff82708582

# opnsense-patch https://github.com/opnsense/core/commit/beff82708582

Does that help?


Cheers,
Franco

Applied the patch and rebooted the lab firewall (26.7.r2_3)

This did not change the widget layout.

Ok, strange, but if you hit the edit button the layout starts behaving?

https://github.com/opnsense/core/commit/83236171bb98 has something to do with it then, but the previous code only fixed the wrong size of the disk widget after load, not that it initially takes the wrong size.  This may be due to the fact that the disk widget has multiple sizes.


Cheers,
Franco

On Firefox - Edit, add widget, save, reload. On Brave - Edit, remove widget, save, reload. Neither changed the behavior.

I have HDPI screens which are scaled. To rules this out I reverted both to 100%. Doing shows that the System Information widget is doing the same thing. Though it is resizing within a few seconds, or so.

The Disk widget eventually resized on both browsers after ~ 10 minutes.

I think the following patch should help:

# opnsense-patch https://github.com/opnsense/core/commit/0e1e8cfa163bb27b01e33cc0d34fde2eac512e4e

Seems to have been an ordering issue in rendered content vs resize trigger.

It helps.

For both browsers after opening and closing edit mode the widgets resize.

When using page reload, via <F5>, the larger widget size does still occasionally appear. Less so for Firefox.