From fcb5d607d48cc035cf3346d7359f8679cf1acc9a Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 11 May 2022 12:26:02 +0100 Subject: [PATCH] Merge pull request #7809 from overleaf/jpa-more-references-search-results [misc] show more references search results GitOrigin-RevId: e3edc78b85a13e663f692ab90b7bf8cd0246a34f --- services/web/frontend/extracted-translations.json | 1 + services/web/frontend/stylesheets/app/editor.less | 7 ++++++- services/web/locales/en.json | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 649d2cde0d..1ae1c23c04 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -441,6 +441,7 @@ "too_many_attempts": "", "too_many_files_uploaded_throttled_short_period": "", "too_many_requests": "", + "too_many_search_results": "", "too_recently_compiled": "", "total_words": "", "try_again": "", diff --git a/services/web/frontend/stylesheets/app/editor.less b/services/web/frontend/stylesheets/app/editor.less index 4547381f40..8a715135d3 100644 --- a/services/web/frontend/stylesheets/app/editor.less +++ b/services/web/frontend/stylesheets/app/editor.less @@ -599,9 +599,14 @@ CodeMirror // search result items list .search-results { font-size: 12px; - .no-results-message { + .no-results-message, + .too-many-results-message { font-size: 16px; } + .search-results-scroll-container { + max-height: calc(100vh - 225px); + overflow-y: auto; + } .search-result-hit { &:hover { cursor: pointer; diff --git a/services/web/locales/en.json b/services/web/locales/en.json index b0a1ed4c81..7f74809302 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -790,6 +790,7 @@ "notification_group_invite": "You have been invited to join the __groupName__, Join Here.", "search_references": "Search the .bib files in this project", "no_search_results": "No Search Results", + "too_many_search_results": "There are more than 100 results. Please refine your search.", "email_already_registered": "This email is already registered", "email_already_registered_sso": "This email is already registered. Please log in to your account another way and link your account to the new provider via your account settings.", "compile_mode": "Compile Mode",