Skip to content

Commit

Permalink
Pas d'automaticResize sur Mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
eyssette committed Jul 19, 2024
1 parent 43e7662 commit dde5114
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/Mindmap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
let description;
$: description = $markdownSource;
let automaticResize = true;
const isMobile =
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
navigator.userAgent
);
let automaticResize = isMobile ? false : true;
let mm;
$: if (maxWidth<250) {
Expand Down

0 comments on commit dde5114

Please sign in to comment.