mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 15:41:54 +02:00
Set meta search panel width to 400px
This commit is contained in:
parent
8d39ec2f69
commit
5217197061
@ -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);
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user