Lizmap 3.7 / 3.9 raster legend rendering

In previous versions of LWC (e.g. 3.5) the rendering of the raster legends was performed differently (single png corresponding roughly to the QGIS desktop display).

However with more recent versions of LWC, the rendering changed and results in a hardly readable legend as colored squares corresponding to each raster values are very smal (7x4 px). I have read that with LWC 3.7.9, the default 16x16 px size was removed (3liz/lizmap-web-client 3.7.9 on GitHub) but there are no easy options to apply a different sizing from what I could gather. I tried having a precompiled png legend through layer properties in QGIS desktop, add custom CSS in LWC admin part but not flexible, tried some potential hiden settings in the .cfg file (legend_icon_size) but nothing worked or not in a flexible manner.

I guess the best option would be to change the legend rendering of the LWC itself but that seems quite obscure to me how to do it, any help here ?

Thanks!

Etienne