Fix: Better layout detection
Use span class="badge" for notes.
Uniformize position of "Create link" on categories.