Skip to content

Improve Link Preview Sizing

James Graham requested to merge work/nvrwhere/link_preview_improvements into master

Update linkpreviewer to minimise the number of resizes.

  • There is now a placeholder loading element to hold space while the data is obtained
  • The component starts with a set size but can be expanded to see the whole item.
  • The expand/contract button is only visible on hover
  • The default size is picked to show 3 lines of text (1 heading and 2 description, 2 heading and 1 description, etc)

This is designed to help with the timeline scroll jumping CCBUG: 463235 by minimizing the amount of resizing for items in the timeline.

Before

image

After when compressed

image

After When expanded

image

After Loading

image

Edited by James Graham

Merge request reports

Loading