Is there a way to resize dashboard?
-
Hi!
Is there a way to resize the dashboard?
I want to start adding IPv6 support on my firewall interfaces but now that I put it on two interfaces the dashboard no longer looks nice.
Is there a way to change the widget width and in a way that won't break with updates?
Thank you!
Nick
-
Within the pfSense config only by changing the number of columns in System > General Setup.
Outside the config then anything's possible if you can code it.
Steve
-
Hi Stephen!
@stephenw10 said in Is there a way to resize dashboard?:
Within the pfSense config only by changing the number of columns in System > General Setup.
In my case only lowering it to "1" would avoid the problem... It makes the dashboard much less usable but it works...
Outside the config then anything's possible if you can code it.
Frontend stuff is no my forte but I am a programmer so I could do it...
Only problem is that whatever I do would break with the next update...
Thank you very much for your help Stephen!
Nick
-
Just so you know this is what it looks like with IPv6 addresses (which end up truncated anyway):
The most noticeable problems are the truncated IPv6 addresses and the interface names positions.
Have a nice day!
Nick
PS: I know there is a lot of red here... It's a combination of defective hardware (which is supposed to arrive today) and currently unused interfaces.
-
Hmm, well I've never tried but you might be able to do it with a 'theme'. Modify one of the existing ones perhaps.
Or maybe just patch the Interfaces widget to display that better. You could argue that's a bug. But even if not displaying IPv6 addresses in a more friendly way is certainly something that could be accepted as a feature.Steve
-
Hi Stephen!
I tried to play a little with it but it does not seem to be an easy fix (at least for me) and I need to address other issues right now. I will revisit this another day...
I am not familiar with the library used (seems to be bootstrap) used to make the UI responsive.
It also looks like just about every theme depends on pfSense.css and overrides what it likes from it.
That being said, I found a partial workaround...
The -BETA themes seem to use a smaller font so a full IPv6 address can be shown...
The interface names still end up on the second line sometimes and everything is in a smaller font not solely the IP address so it is not a perfect solution but quite usable in the mean time...
re:
I have a feeling that what would most likely be the best solution would require some modifications to the theme but to the code that use it as well (to add some classes to have a more fine grained control over what should be displayed smaller)...
Thank you and have a nice day!
Nick
-
@knight said in Is there a way to resize dashboard?:
truncated IPv6 addresses
The GUI expands IPv6 ? I don't see that happing :
@knight said in Is there a way to resize dashboard?:
that won't break with updates?
Make your own theme ?
It's just plain CSS and maybe some html.Compare this list :
with what you find in this folder : /usr/local/www/css/ and you' re half way ;)
Don't edit files, add your own. It's lost during upgrade ? No issue, just put it back in. -
@gertjan said in Is there a way to resize dashboard?:
I don't see that happing
I think your v6 IPs happen to have a lot of 0s so they end up taking less space. They are truncated in my installs.
Steve
-
Hi Stephen!
@stephenw10 said in Is there a way to resize dashboard?:I think your v6 IPs happen to have a lot of 0s so they end up taking less space. They are truncated in my installs.
Yep, you are both right, IPv6 IPs with a lot of 0s can be written in a shorter way so they end up taking less space...
The ones I put as a test do have a lot of 0s but I wrote them in their entirety, this might or might not change in the future...
I have a lot of catch up to to regarding IPv6 and how similar and different it is from IPv4.
Thank you and have a nice day!
Nick
-
@stephenw10 said in Is there a way to resize dashboard?:
I think your v6 IPs happen to have a lot of 0s so they end up taking less space.
But his do as well, not sure why these are expanded out..
Those should just be ::, also in his other post 0001 is expanded out??
That seems odd as well.. See in first post where its 0003, that shouldn't be like that either.. See mine where I have a 3 in my address, but its just shown as 3, not 0003, and see were address ends in a single digit 2, its not 0002
edit: Ah if he wrote them like that?? Maybe that is why their fully expanded.
edit2: You could also just get a wider screen or run higher res, I have 4 columns in my dashboard and pretty happy with the layout and overlap of stuff.. There is some minor stuff - but all readable.. If I set it 3 columns there is none.. But then again I don't fully expand my IPv6 ;)
-
Mmm, I was thinking there may have been some other collapsed section under the redaction but, I agree, that doesn't explain
:0003:
vs:3:
-
@johnpoz said in Is there a way to resize dashboard?:
But his do as well, not sure why these are expanded out..
I just added leading zeros to one of the interfaces and the interface now shows as:-
So the widget isn't stripping them, however an ifconfig on the interface doesn't show the leading zeros.
-
I typed them like that...
I do know that you can strip "0" from them but I have never played with IPv6 before so I preferred not to use the shorthand notation until I was more comfortable with the thing...
I did not realize until someone else posted a few posts ago that the screen assumed the IPv6 addresses were written using the shorthand notation and that my choice of writing them in their entirety was to blame...
Sorry...
Nick
PS: HD screen here, 1920 x 1080...
-
There is no blame here. It's just an artifact if how it's coded. It could probably be better but since most users are unaffected it's pretty low priority,
Steve
-
@knight yeah no blame anywhere.. But you could get one of those new ultra wide monitors ;)
I see a 49" wide that does 5120 x 1440 resolution.. heheh I am just having a bit of fun, not actually suggesting that as a fix, but it would solve the problem hehehhe
Its only $1,138.38 on amazon right now ;)
-
-
You've modded a special pfSense theme ?