Set meta search panel width to 400px

This commit is contained in:
Yuriy Bakhtin 2024-03-25 16:23:16 +01:00
parent 8d39ec2f69
commit 5217197061
3 changed files with 4 additions and 4 deletions

View File

@ -330,7 +330,7 @@ humhub.module('ui.search', function(module, require, $) {
// Set proper panel height
const panelTop = this.getPanel().position().top + this.$.offset().top - $(window).scrollTop();
const maxHeight = $(window).height() - panelTop - ($(window).width() > 390 ? 80 : 0);
const maxHeight = $(window).height() - panelTop - ($(window).width() > 440 ? 80 : 0);
this.getPanel().css('height', 'auto');
if (this.getPanel().height() > maxHeight) {
this.getPanel().css('height', maxHeight);

View File

@ -3,7 +3,7 @@
left: auto;
right: 0;
max-width: 100%;
min-width: 350px;
min-width: 400px;
padding: 0;
border: none;
border-radius: 8px;
@ -206,7 +206,7 @@
}
}
@media (max-width: 390px) {
@media (max-width: 440px) {
.dropdown.search-menu {
position: initial;
}

File diff suppressed because one or more lines are too long