Fixes #3457 - Ticket Zoom is not working correctly with iPhone

This commit is contained in:
Martin Edenhofer 2021-03-19 15:41:34 +01:00
parent 3599319ea6
commit 53ceb9de9d
3 changed files with 3 additions and 3 deletions

View file

@ -192,7 +192,7 @@ class App.FirstStepsClues extends App.Controller
maxHeight = $(window).height()
# try to place it parallel to the larger side
if target.height > target.width && window.matchMedia('(min-width: 768px').matches
if target.height > target.width && window.matchMedia('(min-width: 768px)').matches
# try to place it aside
# prefer right
if target.right + modal.width <= maxWidth

View file

@ -173,7 +173,7 @@ class App.TicketCreate extends App.Controller
@controllerBind('ticket_create_rerender', (template) => @renderQueue(template))
# initially hide sidebar on mobile
if window.matchMedia('(max-width: 767px').matches
if window.matchMedia('(max-width: 767px)').matches
@sidebar.addClass('is-closed')
@sidebarSpacer.addClass('is-closed')

View file

@ -249,7 +249,7 @@ class App.TicketZoom extends App.Controller
App.OnlineNotification.seen('Ticket', @ticket_id)
# initially hide on mobile
if window.matchMedia('(max-width: 767px').matches
if window.matchMedia('(max-width: 767px)').matches
@el.find('.tabsSidebar').addClass('is-closed')
@el.find('.tabsSidebar-sidebarSpacer').addClass('is-closed')