lbry-desktop/ui/scss
infinite-persistence 3243ce6e0a
Image Claims: minimum layout shift on desktop layout
## Issue
6068

## Change
Lock all images to fit a 16:9 container. We have implemented 'ZoomableImg', so no reason in trying to display in full size.

This reduces CLS from 0.4xx to 0.01x.

## Flaws
CLS could probably be zero if not for the spinner shifting things slightly. Also, mobile CLS is 0.07.

The troublesome part in this PR is that FileRenderInitiator, FileRender and their subcomponents are broken apart and it's hard to synchronize their visibility and size. There are time gaps where none of them are visible, etc.

This PR only tackles the major part (most bang for buck), which is the elimination of variable height of the rendered image.

## Aside
I think `claimIsMine` is unused, so don't waste time requesting it.
2021-07-19 14:26:00 +08:00
..
component Image Claims: minimum layout shift on desktop layout 2021-07-19 14:26:00 +08:00
init wip 2021-06-08 13:25:52 -04:00
themes Fix notification color. 2021-06-10 10:21:50 -04:00
all.scss updated code 2021-07-03 14:42:37 -04:00
third-party.scss Revert lazy-loading videojs 2021-07-06 17:04:16 +08:00