New reference panel: some minor fixes and refactorings
Created by: mrnugget
This doesn't change behaviour at all.
- Fixes CSS of mini code view so there's no empty margin at bottom
- Renames props so they're more consistent
- Adds a constant that was repeated
Test plan
- Tested manually locally to confirm that no behaviour was changed and that the CSS fix works as intended