45Drives / cockpit-zfs-manager

Cockpit ZFS Manager is an interactive ZFS on Linux admin package for Cockpit.
GNU Lesser General Public License v3.0
314 stars 26 forks source link

Missing fonts #34

Open mroach opened 3 weeks ago

mroach commented 3 weeks ago

I'm running Cockpit 325 on Debian 11. I added the ZFS module and it works, but font-awesome isn't available, so the icons don't work. Looking at the HTTP logs, there are 404s for a bunch of fonts only when looking at the ZFS module.

Screenshot from 2024-10-30 21-33-01

Screenshot from 2024-10-30 21-36-31

Legomaniac commented 2 weeks ago

Same issue here! Glad to have ZFS in cockpit but I have noticed this font problem, and that it doesn't respect Cockpit's dark mode.

blounolito commented 1 week ago

Hi, I got the same font problem. I created this folder : /usr/share/cockpit/base1/fonts/ And put at least this file in it : https://github.com/saper/reformcopyright/blob/master/www.reformonsledroitdauteur.eu/font-awesome/fonts/fontawesome-webfont.woff%3Fv%3D4.2.0 (I renamed it to fontawesome.woff)

image I think missing fonts should go in there, but it looks like a crap solution.

Edit : you can do the same thing with

/usr/share/cockpit/zfs/assets/fonts/RedHatDisplay/
/usr/share/cockpit/zfs/assets/fonts/RedHatText/

and put there the .woff files of RedHatDisplay and RedHatText

blounolito commented 1 week ago

Regarding the dark mode, it looks like zfs/index.html is missing class="pf-theme-dark" in the <html> tag, but adding it will partially work (text is still black on gray)