Skip to content

Commit

Permalink
fix: mobile search cancel button layout
Browse files Browse the repository at this point in the history
Close: #1377
  • Loading branch information
HEIGE-PCloud committed Dec 14, 2024
1 parent 160870e commit 4c5c8e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,11 @@ html.dark {
height: 2.5rem;
}

.tw-h-fit {
height: -moz-fit-content;
height: fit-content;
}

.\!tw-max-h-0 {
max-height: 0px !important;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<button class="search-button search-toggle tw-h-10" id="search-toggle-mobile" title="{{ T `search` }}">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "search") }}
</button>
<button class="search-button search-clear" id="search-clear-mobile" title="{{ T `clear` }}">
<button class="search-button search-clear tw-h-fit" id="search-clear-mobile" title="{{ T `clear` }}">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "times-circle") }}
</button>
<span class="search-button search-loading tw-animate-spin" id="search-loading-mobile">
Expand Down

0 comments on commit 4c5c8e2

Please sign in to comment.