Fix layout bug with item/munzee found popup on larger screens

This commit is contained in:
Skylar Ittner 2019-06-08 22:58:37 -06:00
parent 22fb101a74
commit b26fccae6f

View File

@ -56,13 +56,17 @@ function scanCode() {
if (resp.item == "" && resp.munzee == "") {
app.dialog.alert("You didn't find anything new.", "");
} else {
$("#founditem-block").addClass("tablet-50");
$("#foundmunzee-block").addClass("tablet-50");
if (resp.item == "") {
$("#foundmunzee-block").removeClass("tablet-50");
$("#founditem-block").addClass("display-none");
} else {
$("#founditem-name").text(resp.item);
$("#founditem-block").removeClass("display-none");
}
if (resp.munzee == "") {
$("#founditem-block").removeClass("tablet-50");
$("#foundmunzee-block").addClass("display-none");
} else {
$("#foundmunzee-name").text(resp.munzee);