evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.92k stars 509 forks source link

GUI should provide horizontal scroll bar when window is too small for entire list width #955

Open petterreinholdtsen opened 1 year ago

petterreinholdtsen commented 1 year ago

When using opensnitch on a laptop with 1366x768 pixels on the screen, the lists (for example the rules) have too many columns to show them all. The details in operator_data disappears out the right edge and is not available.

This make it very hard to see what the rules of the list are all about. Please add a horizontal scroll bar when the list do not fit the current window size.

This is using OpenSnitch version 1.5.8.1-1 on Debian Bookworm with KDE and Linux kernel .6.1.0-9-rt-amd64.

gustavo-iniguez-goya commented 1 year ago

I don't reproduce this issue on Debian Bookworm with KDE. Even without network activity the horizontal scroll bar is displayed, mainly because the columns does not fit the window.

could you post a screenshot?

petterreinholdtsen commented 1 year ago

Sure. Here is one full screen example, note the operator_data part that is cut, and there is no way to see the rest of it. Screenshot_20230606_105308

gustavo-iniguez-goya commented 1 year ago

aah ok, I see what you mean. If you click on the right border of the operator_data column, it'll autoexpand to fit the content of the cells.

But yes, we could take this into account to show the scroll bars. Right now I think the scroll bars are displayed based on the columns width, instead of the cells' content.

petterreinholdtsen commented 1 year ago

[Gustavo Iñiguez Goia]

aah ok, I see what you mean. If you click on the right border of the operator_data column, it'll autoexpand to fit the content of the cells.

Aha. That was not easy to find. I would recommend making the default behaviour to include the scroll bar.

But yes, we could take this into account to show the scroll bars. Right now I think the scroll bars are displayed based on the columns width, instead of the cells' content.

Aha. It make it very hard to see the JSON blob in operator_data.

-- Happy hacking Petter Reinholdtsen