Card preview: clicking empty space beside the info tile closes it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user