Skip to content

Commit

Permalink
fix: guest search on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 7, 2023
1 parent 98d5ba4 commit 1e5c994
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scss/sidebar.scss
Expand Up @@ -164,7 +164,7 @@
}
left: 0!important;
right: 0!important;
bottom: $spacer!important;
bottom: $spacer*0.5!important;
box-shadow: none!important;
max-height: 60vh!important;
overflow: auto!important;
Expand All @@ -176,7 +176,6 @@
.search-dropdown, .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
left: 0 !important;
right: 0 !important;
bottom: $spacer * 0.7 !important;
box-shadow: none!important;

border-left: 0;
Expand Down
22 changes: 20 additions & 2 deletions templates/partials/mobile-footer.tpl
Expand Up @@ -66,13 +66,31 @@
<!-- IMPORT partials/sidebar/drafts.tpl -->
</li>

<li id="user_label" class="nav-item m-0 py-2 usermenu">
<li id="user_label" class="nav-item m-0 usermenu">
<!-- IMPORT partials/sidebar/user-menu.tpl -->
</li>
</ul>
{{{ else }}}
<ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
<!-- IMPORT partials/sidebar/logged-out-menu.tpl -->
{{{ if (config.searchEnabled && user.privileges.search:content) }}}
<li component="sidebar/search" class="nav-item mx-2 search">
<!-- IMPORT partials/sidebar/search-mobile.tpl -->
</li>
{{{ end }}}

{{{ if allowRegistration }}}
<li class="nav-item mx-2" title="[[global:register]]">
<a class="nav-link nav-btn" href="{relative_path}/register">
<i class="fa fa-fw fa-user-plus"></i>
</a>
</li>
{{{ end }}}

<li class="nav-item mx-2" title="[[global:login]]">
<a class="nav-link nav-btn" href="{relative_path}/login">
<i class="fa fa-fw fa-sign-in"></i>
</a>
</li>
</ul>
{{{ end }}}
</div>
Expand Down

0 comments on commit 1e5c994

Please sign in to comment.