Fluent-Search icon indicating copy to clipboard operation
Fluent-Search copied to clipboard

Text preview wrap does not adapt to pane size

Open wordpure opened this issue 3 years ago • 4 comments

Describe the bug Even with word wrap turned on, the text in the preview pane does not automatically adjust to the maximum length of each line as the pane size changes.

To Reproduce Steps to reproduce the behavior:

  1. Turn on 'Setting - Preview - General - Word wrap'
  2. Preview text file
  3. Zoom out the preview pane
  4. Text inside preview pane does not wrap properly

Expected behavior Word wrap can adapt to changes in pane size.

Screenshots

图片

图片

Desktop (please complete the following information):

  • Windows 11 Version: 21H2
  • Fluent Search Version: 0.9.92.43

Additional context

The distance between the text and the two ends of the pane is too tight. Maybe we can appropriately expand the white space on both sides (only the left side when word wrap is not turned on) to obtain a more comfortable reading experience?

wordpure avatar Aug 31 '22 09:08 wordpure

This issue has been potentially fixed in version 0.9.92.47 . Changelog - https://install.appcenter.ms/users/adirh3-gmail.com/apps/fluent-search-alpha/distribution_groups/exe

adirh3 avatar Sep 26 '22 20:09 adirh3

Thanks for the fix.

The distance between the text and the two ends of the pane is too tight. Maybe we can appropriately expand the white space on both sides (only the left side when word wrap is not turned on) to obtain a more comfortable reading experience?

I wonder if you could consider increasing the spacing on both sides of the text?

wordpure avatar Sep 27 '22 05:09 wordpure

Thanks for the fix.

The distance between the text and the two ends of the pane is too tight. Maybe we can appropriately expand the white space on both sides (only the left side when word wrap is not turned on) to obtain a more comfortable reading experience?

I wonder if you could consider increasing the spacing on both sides of the text?

Give horizontal padding? Wouldn't it reduce space for text to read?

adirh3 avatar Sep 27 '22 09:09 adirh3

Give horizontal padding? Wouldn't it reduce space for text to read?

What I'm thinking of is to add padding to the left and right sides of the text with a width of about two characters each, so that the text area is better separated from the line numbers or pane edges.

图片

This definitely reduces the readable area of the preview pane, but the size of the search window and preview pane is adjustable, so it doesn't have much of an impact and I think it's worth trading it for an improved reading experience.

wordpure avatar Sep 27 '22 10:09 wordpure