Commit 93a8023
committed
fix(PictureThumbnail): Scope image CSS to direct children
The [loading] opacity rule used a descendant selector which also matched
the cloned img that CropperJS moves into its own canvas inside the
thumbnail. If the clone's load event fired before the original's, the
cropper UI was built while the loading attribute was still set, leaving
the image inside the cropper invisible until the original fired its own
load event. Scoping the rule to direct children keeps the hide/reveal
behavior for our own placeholder while leaving nested imgs untouched.1 parent ffc575c commit 93a8023
2 files changed
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments