Skip to content

Commit

Permalink
Update save_button.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-varich authored Oct 4, 2024
1 parent 1a43eaf commit fbd91fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/save_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ document.addEventListener('DOMContentLoaded', function () {
const line = group.querySelector('.line');

let lineHeight;
if (isMobile) {lineHeight = line ? line.offsetHeight : 130;}
else{ lineHeight = line ? line.offsetHeight : 110;}
if (isMobile) {
lineHeight = line && line.offsetHeight ? line.offsetHeight : 130;
} else {
lineHeight = line && line.offsetHeight ? line.offsetHeight : 110;
}

if (input.value.trim() !== "" && textarea.value.trim() === "") {
textarea.placeholder = isHidden ? "" : "Describe this waypoint..."; // Remove placeholder in Finish mode
Expand Down

0 comments on commit fbd91fd

Please sign in to comment.