Make wish details full screen on small viewports

This commit is contained in:
grandeljay 2022-12-29 14:19:03 +01:00
parent b7a4266b10
commit 6dc542ad7a

View file

@ -27,6 +27,7 @@ $(function () {
$(document).on('click', '.ui.button.wish-details', function() {
var wish_details_template = $('template#wish-details').clone(true, true);
var wish_details = wish_details_template.contents().filter(function() { return this.nodeType !== 3; });
var wish_details_size = window.matchMedia('(max-width: 768px)').matches ? 'overlay fullscreen' : 'large';
/** Show modal */
wish_details