Welcome dialog: mobile css class is always added

Be sure to only do that when on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0a4f803ce50ceb950b4d9f0bbc38f5629218393b
This commit is contained in:
Pedro Pinto Silva 2021-10-06 11:28:34 +02:00 committed by pedropintosilva
parent 540a20675b
commit 242f00c8be

View file

@ -590,7 +590,7 @@ L.Map.include({
showCloseButton: !hasDismissBtn,
escapeButtonCloses: false,
overlayClosesOnClick: false,
className: 'vex-theme-plain vex-welcome-mobile',
className: !window.mode.isMobile() ? 'vex-theme-plain' : 'vex-theme-plain vex-welcome-mobile',
closeAllOnPopState: false,
focusFirstInput: false, // Needed to avoid auto-scroll to the bottom
buttons: !hasDismissBtn ? {} : [