mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03:00
Fix regression: close media modal, not the status page
Clicking close goes *back* from media=1 to media-only=1
This commit is contained in:
parent
950114b9f7
commit
8efc7a226e
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ function StatusPage(params) {
|
|||
instance={instance}
|
||||
index={mediaIndex - 1}
|
||||
onClose={() => {
|
||||
if (snapStates.prevLocation) {
|
||||
if (
|
||||
!window.matchMedia('(min-width: calc(40em + 350px))').matches &&
|
||||
snapStates.prevLocation
|
||||
) {
|
||||
history.back();
|
||||
} else {
|
||||
if (showMediaOnly) {
|
||||
|
|
Loading…
Reference in a new issue