add solar panel icon

This commit is contained in:
Cayo Puigdefabregas 2023-07-27 12:19:23 +02:00
parent 07e506f999
commit 25fd9c3b6f
3 changed files with 13 additions and 1 deletions

View File

@ -929,6 +929,7 @@ class Device(Thing):
"Cellphone": "bi bi-telephone",
"HardDrive": "bi bi-hdd-stack",
"SolidStateDrive": "bi bi-hdd",
"SolarPanel": "bi-solar-panel",
}
return types.get(self.type, '')

View File

@ -42,4 +42,15 @@
}
.printLabelForm {
margin-left: 10px;
}
}
.bi-solar-panel {
background-image: url("/static/img/solar-panel.png");
background-repeat:no-repeat;
background-size: cover;
padding-left: 10px;
padding-right: 10px;
margin-right: 5px;
line-height: 17px;
font-size: 15px;
vertical-align: middle;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB