Skip to content

Commit

Permalink
if firefox then 18px font-size else 16px
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMayfield committed Jul 22, 2024
1 parent 125bd20 commit eda87ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,11 @@ export function getStopClicked() {
return stopClicked;
}

const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');
const fontSize = isFirefox ? 18 : 16;

export const textEditor = ace.edit("aceCode", {
fontSize: 18,
fontSize: fontSize,
mode: 'ace/mode/praxly',
});

Expand Down

0 comments on commit eda87ff

Please sign in to comment.