Card preview: clicking empty space beside the info tile closes it

This commit is contained in:
2026-10-25 14:23:48 -05:00
parent 226878fdd7
commit fae1aa2b05
2 changed files with 17 additions and 3 deletions

View File

@@ -2100,7 +2100,10 @@ tbody tr:hover {
.preview-modal {
position: relative;
margin: auto;
cursor: default;
/* Its empty space (e.g. below a short info tile) closes the modal like the
backdrop does — see ClickPreviewModal — so only the actual content gets
the default cursor. */
cursor: zoom-out;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
@@ -2111,6 +2114,10 @@ tbody tr:hover {
.preview-modal-faces {
position: relative;
}
.preview-modal > :not(.preview-modal-faces),
.preview-modal-faces > * {
cursor: default;
}
/* Sized explicitly (Scryfall "normal" images are 488x680) rather than from
the image's intrinsic size, so the box is already its final size before the
image loads — ClickPreviewModal measures the layout on mount to decide on