netbox-community / netbox-floorplan-plugin

NetBox Floorplan plugin
GNU Lesser General Public License v3.0
54 stars 14 forks source link

Text-size for text on racks/non-devices #3

Open deku-m opened 7 months ago

deku-m commented 7 months ago

The text on the racks/devices is sometimes to big for the rectangle the rack/nondevice is using: 267554910-fc3759ad-4f08-4a23-8373-a23fdf36f12a My suggestion is to lower the text size or extend it on new line when the name is too long automatically or give the option to increase/decrease text-size. So this can be matched in the rectangle for readability. Other option could be to shorten the name with RACK-01-X... instead of RACK-01-X4567.

Maybe place active at the bottom with smaller text size so that it is not bigger then the rack/nondevice name We could also add the option under active to let you know how full the rack capacity is. See example: 267561407-a832a501-42f7-473e-be78-aa16a5100d1d

dionrowney commented 6 months ago

I would also suggest an option for a custom name like the R01 example above. In our case the rack name contains the full location and parent locations (as that is needed by us elsewhere in netbox): ex: BUILDING 123 DATACENTER 1 ROW 2 RACK 4 but the map only requires the name RACK 4 or R01 in decu-m's example. Maybe there needs to be internal fields for label text, size location etc.? Could start with label text...