From f8ca5501d6d0674ce092f40aee61019babb2f8b9 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 26 Mar 2024 10:21:51 +0100 Subject: [PATCH] 13185-Change header and menu. WIP --- pandora_console/general/header.php | 29 ++++++++++++++++-- pandora_console/include/javascript/pandora.js | 5 ++++ .../include/styles/order_interpreter.css | 30 +++++++++++-------- pandora_console/include/styles/pandora.css | 10 +++++++ pandora_console/index.php | 3 ++ 5 files changed, 62 insertions(+), 15 deletions(-) diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index 5502fec94f..a0974d018f 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -140,7 +140,6 @@ echo sprintf('
', $menuTypeClass); } } - $search_bar .= '
'; $search_bar .= '', $menuTypeClass); $modal_box .= ''.__('Join discord community').''; $modal_box .= '
'; + // Move help modal (header) fix z-index. + $modal_box .= ' + + '; + if ($config['activate_feedback'] === '1') { $modal_help = html_print_div( [ @@ -892,7 +912,8 @@ echo sprintf('
', $menuTypeClass); enterprise: , }, success: function (data) { - $('#result_order').html(data); + $('#result_order').html(data); + resizeSearchHeader() }, error: function (data) { console.error("Fatal error in AJAX call to interpreter order", data) @@ -1215,4 +1236,8 @@ echo sprintf('
', $menuTypeClass); }); }); /* ]]> */ + +$(window).resize(function () { + resizeSearchHeader() +}); diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js index 2a2d7205a0..f54d77041b 100644 --- a/pandora_console/include/javascript/pandora.js +++ b/pandora_console/include/javascript/pandora.js @@ -2736,3 +2736,8 @@ function menuTabsShowHide() { } } } + +function resizeSearchHeader() { + $(".show_result_interpreter").width($("#keywords").outerWidth() - 14); + $(".show_result_interpreter").css("left", $("#keywords").position().left + 3); +} diff --git a/pandora_console/include/styles/order_interpreter.css b/pandora_console/include/styles/order_interpreter.css index 604a0141a8..9c5e804ec1 100644 --- a/pandora_console/include/styles/order_interpreter.css +++ b/pandora_console/include/styles/order_interpreter.css @@ -2,16 +2,18 @@ div.show_result_interpreter { background-color: #fff; color: #000; border: 1px solid #e2e2e2; - border-bottom-left-radius: 10px; - border-bottom-right-radius: 10px; + border-top: 0; + border-bottom-left-radius: 18px; + border-bottom-right-radius: 18px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; box-shadow: 0px 0px 15px -4px #dadada; position: absolute; - z-index: 1; + z-index: 3; width: 300px; - top: 45px; + top: 48px; + left: 50%; } .more_results { @@ -21,22 +23,24 @@ div.show_result_interpreter { } .results-found { - background-image: url("../../images/input_zoom_gray.png"); - background-position: center right 10px; + background-image: url("../../images/details.svg"); + background-position: center left 20px; background-repeat: no-repeat; background-size: 17px; - background-color: #f2f6f7; + background-color: #f6f7fb; padding: 0px; margin: 0; - width: 300px; - height: 30px; + width: 150px; + height: 36px; margin-left: 2px; - padding-left: 15px; - padding-right: 40px; + padding-right: 15px; + padding-left: 45px; color: #777; font-size: 8.5pt; - border-top-left-radius: 10px; - border-top-right-radius: 10px; + border-top-left-radius: 18px; + border-top-right-radius: 18px; + border-bottom-left-radius: 0px; + border-bottom-right-radius: 0px; border-color: transparent; } diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index d2ced30616..62db554060 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -2794,6 +2794,10 @@ div#pandora_logo_header { .header_left { display: flex; flex-direction: column; +} + +#head, +#header { text-wrap: nowrap; } @@ -2809,6 +2813,12 @@ div#pandora_logo_header { padding: 0 100px; } +@media screen and (max-width: 1300px) { + #header_searchbar { + padding: 0 30px; + } +} + #header_searchbar #keywords { width: 100%; } diff --git a/pandora_console/index.php b/pandora_console/index.php index 1a70cbcd48..c83207a44b 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1564,6 +1564,9 @@ while (ob_get_length() > 0) { ob_end_flush(); } +// Results search header. +echo '
'; + db_print_database_debug(); echo '';