Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Line wrapping in 'Compare search results' result list problematic #69

Closed
macrakis opened this issue Nov 4, 2022 · 0 comments · Fixed by #94
Closed

[BUG] Line wrapping in 'Compare search results' result list problematic #69

macrakis opened this issue Nov 4, 2022 · 0 comments · Fixed by #94
Labels
bug Something isn't working v2.4.0

Comments

@macrakis
Copy link

macrakis commented Nov 4, 2022

What is the bug?

In the Results field of Search Relevance / Compare search results, the text wrapping is bizarre.

How can one reproduce the bug?

With the query {} on the sample_data_ecommerce index, the first result (with a certain window width) looks like this:

category: ["Men's
Clothing"] currency: EUR customer_first_name: Eddie customer_full_name :Edd
ie
Underwood customer_gender: MALE customer_id: 38 customer_last_name: Underwo

Three problems:

  • line breaks only happen at spaces within value fields (and not between the field name and the value or the value and the next field name)
  • the line is overflowing, leaving orphans like "ie" on a line by themselves
  • (not shown in this example), there can be a linebreak between the field name and the following ":".

What is the expected behavior?

Result should be formatted like this:

category: ["Men's Clothing"] currency: EUR customer_first_name:
Eddie customer_full_name: Eddie Underwood customer_gender: MALE
customer_id: 38 customer_last_name: Underwood customer_phone: day_of_week:
Monday day_of_week_i: 0 email: [email protected] manufacturer:

What is your host/environment?

Chrome 107.0.5304.87 on macOS 12.6 Intel

Do you have any screenshots?

Screen Shot 2022-11-04 at 6 39 42 PM
(I don't know why the colon after "category" is missing here -- I couldn't reproduce that.)

Do you have any additional context?

@macrakis macrakis added the bug Something isn't working label Nov 4, 2022
@macohen macohen added the v2.4.0 label Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.4.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants