Commit b645fc3
committed
fix(demo): overlay compare-cell label and correct baseline explanation
- .compare-image-cell::before used position: sticky inside a flex row,
making the label a flex item that consumed horizontal space beside
the img and produced slightly different widths for left vs right
labels. Switch to position: absolute (cell is already
position: relative) so the label overlays the image without
affecting layout.
- The 'Both panels show the unmodified source' message only checked
right.kind === 'baseline', which was incorrect when the user
swapped the left picker to a tile while right was baseline. Guard
it on both sides being baseline; add a right-only baseline case.1 parent 02bf8b2 commit b645fc3
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
| 854 | + | |
855 | 855 | | |
| 856 | + | |
| 857 | + | |
856 | 858 | | |
857 | 859 | | |
858 | 860 | | |
| |||
0 commit comments