fresh install : material icons missings

Support for the docker image maintained by dlandon
Post Reply
cornichon
Posts: 3
Joined: Mon Jul 06, 2020 9:04 pm

fresh install : material icons missings

Post by cornichon » Wed Apr 28, 2021 10:22 am

Hi,

I just installed Zoneminder docker, but the icons are missing from GUI.
instead of icons, I have some text, like "network_check".

I tried a few checks and I am able to download the fonts files from http://<myip>:8080/zm/fonts/MaterialIcons-Regular.eot (and also woff2, woff, ttf).

I have seen I'm not the only one with such icons issues but I wasn't able to figure out the cause...Is there anything I shall do ?

here is an overview:
Image

cornichon
Posts: 3
Joined: Mon Jul 06, 2020 9:04 pm

Re: fresh install : material icons missings

Post by cornichon » Wed Apr 28, 2021 1:34 pm

Hi !

well, I found a workaround.

from page source code (in firefox), I can see the skin.css is loaded with:

Code: Select all

<link rel="stylesheet" href="skins/classic/css/base/skin.css" type="text/css">
while in skins.css (also from firefox source code check), the fonts are loaded from:

Code: Select all

url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
so, it seems to expect the fonts in skins/classic/css/fonts (ie inside the docker in /usr/share/zoneminder/www/skins/classic/css/fonts )
while the fonts files are in /usr/share/zoneminder/www/fonts.

So I copied the fonts from /usr/share/zoneminder/www/fonts to /usr/share/zoneminder/www/skins/classic/css/fonts
and it works :)

not sure it's a clean way ?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests