Fix width calculation in viewer pane when wide
CSS tweaks for gear icon