Преглед изворни кода

Merge pull request #7809 from overleaf/jpa-more-references-search-results

[misc] show more references search results

GitOrigin-RevId: e3edc78b85a13e663f692ab90b7bf8cd0246a34f
Alf Eaton пре 4 година
родитељ
комит
12369b9f9a

+ 1 - 0
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": "",

+ 6 - 1
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;

+ 1 - 0
services/web/locales/en.json

@@ -790,6 +790,7 @@
   "notification_group_invite": "You have been invited to join the __groupName__, <a href=\"/user/subscription/__subscription_id__/group/invited\">Join Here</a>.",
   "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",