Skip to content

Commit

Permalink
npm run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 18, 2024
1 parent 629f060 commit d753120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async function openDialog({ url, data, asyncContext, promptBeforeOpen, ...params

function charsToPercentage(chars, maxSize) {
const bodyFontSize = parseInt(window.getComputedStyle(document.body).fontSize);
return Math.floor(bodyFontSize * chars / maxSize * 100);
return Math.floor(((bodyFontSize * chars) / maxSize) * 100);
}

async function tryConfirm(data, asyncContext) {
Expand Down
2 changes: 1 addition & 1 deletion src/web/dialog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

export function resizeToContent() {
const range = document.createRange();
range.selectNodeContents(document.querySelector('.card-container'));
range.selectNodeContents(document.querySelector(".card-container"));
const contentsRect = range.getBoundingClientRect();

const widthDelta = contentsRect.width - window.innerWidth;
Expand Down

0 comments on commit d753120

Please sign in to comment.