mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Seems like this is not needed
Fix See Post button not opening the post
This commit is contained in:
parent
b5250f03c1
commit
f6ef727cae
1 changed files with 8 additions and 8 deletions
|
@ -219,14 +219,14 @@ function MediaModal({
|
|||
: ''
|
||||
}`}
|
||||
class="button carousel-button media-post-link plain3"
|
||||
onClick={() => {
|
||||
// if small screen (not media query min-width 40em + 350px), run onClose
|
||||
if (
|
||||
!window.matchMedia('(min-width: calc(40em + 350px))').matches
|
||||
) {
|
||||
onClose();
|
||||
}
|
||||
}}
|
||||
// onClick={() => {
|
||||
// // if small screen (not media query min-width 40em + 350px), run onClose
|
||||
// if (
|
||||
// !window.matchMedia('(min-width: calc(40em + 350px))').matches
|
||||
// ) {
|
||||
// onClose();
|
||||
// }
|
||||
// }}
|
||||
>
|
||||
<span class="button-label">See post </span>»
|
||||
</Link>
|
||||
|
|
Loading…
Add table
Reference in a new issue