Skip to content

Commit e03aae8

Browse files
committed
Fix margins in header around search and user ui
1 parent 68d222b commit e03aae8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Templates/Includes/header.inc.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,21 @@ function _header_nav_html($nav)
187187
_line('</ul>');
188188

189189
// Search
190-
_line('<form action="%s" method="GET" class="mb-3 mb-lg-0 me-lg-3" role="search"><input name="q" type="search" class="form-control bg-dark border-dark text-light" placeholder="Search…" aria-label="Search" value="%s"></form>', UrlFormatter::format('/search'), _header_search_query());
190+
_line('<form action="%s" method="GET" class="mb-3 mb-lg-0 mx-lg-3" role="search"><input name="q" type="search" class="form-control bg-dark border-dark text-light" tabindex="-3" placeholder="Search…" aria-label="Search" value="%s"></form>', UrlFormatter::format('/search'), _header_search_query());
191191

192192
// Account
193193
if (!Authentication::$user)
194194
{
195-
_line('<a class="btn btn-sm btn-outline-secondary my-2 my-sm-0" tabindex="-1" href="%s">Log in</a>', UrlFormatter::format('/user/login'));
196-
if (!Config::get('bnetdocs.user_register_disabled'))
195+
_line('<a class="btn btn-sm btn-outline-secondary my-2 my-lg-0" tabindex="-2" href="%s">Log&nbsp;in</a>', UrlFormatter::format('/user/login'));
196+
if (Config::get('bnetdocs.user_register_disabled'))
197197
{
198-
_line('<a class="btn btn-sm btn-outline-success my-2 my-sm-0 ml-2" tabindex="-2" href="%s">Register</a>', UrlFormatter::format('/user/register'));
198+
_line('<a class="btn btn-sm btn-outline-success my-2 my-lg-0 ml-2" tabindex="-1" href="%s">Register</a>', UrlFormatter::format('/user/register'));
199199
}
200200
}
201201
else
202202
{
203-
_line('<span class="nav-item navbar-text mx-3"><a href="%s">%s</a></span>', Authentication::$user->getURI(), filter_var(Authentication::$user->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS));
204-
_line('<a class="btn btn-sm btn-outline-danger my-2 my-sm-0" tabindex="-1" href="%s">Log out</a>', UrlFormatter::format('/user/logout'));
203+
_line('<span class="nav-item navbar-text mr-3"><a href="%s">%s</a></span>', Authentication::$user->getURI(), filter_var(Authentication::$user->getName(), FILTER_SANITIZE_FULL_SPECIAL_CHARS));
204+
_line('<a class="btn btn-sm btn-outline-danger my-2 my-lg-0" tabindex="-2" href="%s">Log&nbsp;out</a>', UrlFormatter::format('/user/logout'));
205205
}
206206

207207
// Collapsible Hamburger Menu (End)

0 commit comments

Comments
 (0)