From 592331576e6337f7171ce7faf7a72f7a3ada96e0 Mon Sep 17 00:00:00 2001 From: Yuri Teplyakov Date: Mon, 21 Oct 2024 14:00:17 +0200 Subject: [PATCH] ktl-1608 feat: test review fixes --- .../src/main/components/search/search.scss | 7 +++++-- .../src/main/components/search/search.tsx | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.scss b/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.scss index 166fda1b4a..ddd1e79a2a 100644 --- a/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.scss +++ b/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.scss @@ -102,6 +102,9 @@ $secondary-font-color: rgba(255, 255, 255, 0.7); .popup-wrapper { min-width: 100% !important; } + .search-hotkey-popup { + display: none; + } } .template-wrapper { @@ -132,7 +135,7 @@ $secondary-font-color: rgba(255, 255, 255, 0.7); font-weight: 600; line-height: 24px; -webkit-box-orient: vertical; - -webkit-line-clamp: 3; + -webkit-line-clamp: 2; } .template-description { @@ -150,7 +153,7 @@ $secondary-font-color: rgba(255, 255, 255, 0.7); line-height: 20px; justify-self: end; -webkit-box-orient: vertical; - -webkit-line-clamp: 3; + -webkit-line-clamp: 2; } @media screen and (width <= 759px) { diff --git a/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.tsx b/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.tsx index b0672048db..1e5ff03b00 100644 --- a/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.tsx +++ b/dokka-subprojects/plugin-base-frontend/src/main/components/search/search.tsx @@ -42,6 +42,7 @@ const WithFuzzySearchFilterComponent: React.FC = ({ data }: Props) => { data={data} popupClassName={'popup-wrapper'} onSelect={onChangeSelected} + maxHeight={510} customAnchor={({ wrapperProps, buttonProps, popup }: CustomAnchorProps) => ( )}