Skip to content

Commit

Permalink
add margin to install button
Browse files Browse the repository at this point in the history
  • Loading branch information
hypebright committed May 28, 2024
1 parent b4e2e35 commit 39a135d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions inst/shinyMobile-2.0.0/dist/shinyMobile.min.css.map

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions inst/shinyMobile-2.0.0/dist/shinyMobile.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions inst/shinyMobile-2.0.0/dist/shinyMobile.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions srcjs/helpers/helpers-pwa.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Create custom install UI
let installToast = app.toast.create({
position: 'center',
text: '<button id="install-button" class="toast-button button color-green">Install</button>',
text: '<button id="install-button" style="margin:0;" class="toast-button button color-green">Install</button>'
});

let deferredPrompt;
// Handle install event
$(window).on('beforeinstallprompt', (e) => {
Expand All @@ -15,7 +15,7 @@
// Show install trigger
installToast.open();
});

// Installation must be done by a user gesture!
// close toast whenever a choice is made ... Give time
// to the toast to be created before event registration.
Expand All @@ -38,4 +38,4 @@
});
});
}, 500);
};
};

0 comments on commit 39a135d

Please sign in to comment.