From 6bde3acc62897c31c9aa3ec1eae4ed52678316b6 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Mon, 16 Jun 2025 09:17:22 +0100 Subject: [PATCH] Merge pull request #25973 from overleaf/td-restricted-home-link Use a single link for home link in restricted page GitOrigin-RevId: 0220116c89845ad7704fb446e41abf99cfff3b45 --- services/web/app/views/user/restricted.pug | 8 ++++---- .../frontend/stylesheets/bootstrap-5/base/layout.scss | 9 ++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/services/web/app/views/user/restricted.pug b/services/web/app/views/user/restricted.pug index eba1d2ab05..bcc2e8499f 100644 --- a/services/web/app/views/user/restricted.pug +++ b/services/web/app/views/user/restricted.pug @@ -6,8 +6,8 @@ block content .row .col-md-8.offset-md-2.text-center .page-header - h2 #{translate("restricted_no_permission")} + h1 #{translate("restricted_no_permission")} p - span.inline-material-symbols - a(href="/").material-symbols(aria-hidden="true") arrow_left_alt - a(href="/") #{translate("take_me_home")} + a.inline-material-symbols(href="/") + span.material-symbols(aria-hidden="true") arrow_left_alt + | #{translate("take_me_home")} diff --git a/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss b/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss index 4a8d517ba6..d27fb59ad7 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss @@ -79,13 +79,8 @@ hr { margin-top: calc(var(--line-height-03) * 4); } -.inline-material-symbols { - display: inline-flex; - align-items: center; - - a.material-symbols { - text-decoration: none; - } +.inline-material-symbols .material-symbols { + vertical-align: middle; } .container-custom-sm {