From 4145147b53b4d04facf3a4ed80b7682465a728a1 Mon Sep 17 00:00:00 2001 From: Yuri Teplyakov Date: Wed, 23 Oct 2024 23:55:33 +0200 Subject: [PATCH] ktl-1608 feat: test review fixes (#3879) --- .../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) => ( )}