fixed a styling issue of device items in firefox