UI: minor tweaks to insert-hyplink modal (PR #12871)

  • ensures footers buttons are aligned
  • prevents focus on close button to be much larger than it should be, note that this fix could impact other modals but the current solution is not working, so better fix it differently if needed

GitHub