fix 'undefined' list item clone bug, hitboxes for recipe icons more comfortable, fix problem where the operation-dropdown would display on click / tap of elements in expanded recipe view ( mobile )

This commit is contained in:
Robin Scholtes 2023-08-14 21:52:26 +12:00
parent 6caaf1dc99
commit 21eb177527
4 changed files with 15 additions and 6 deletions

View file

@ -497,7 +497,7 @@ ${navigator.userAgent}
*/
onMaximisedRecipeClick() {
// if #recipe is maximised & rec-list is empty on mobile UI
if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > li").length === 0) {
if (this.app.isMobileView() && document.querySelector("#recipe.maximised-pane") && document.querySelectorAll("#rec-list > c-ingredient-li").length === 0) {
// close max pane and display the expanded #operations-dropdown
this.setPaneMaximised("recipe", false);
this.manager.ops.openOpsDropdown();