Skip to content

Commit

Permalink
Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghinda committed Jan 15, 2024
1 parent 2982601 commit 8802498
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "briskine",
"version": "7.10.6",
"version": "7.10.7",
"description": "Write everything faster.",
"private": true,
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions src/content/bubble/bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ customElements.define(
// and makes the transitions be visible.
this.bubbleVisibilityTimer = setTimeout(() => {
if (newValue === 'true') {
this.$button.classList.add(visibleClassName);
this.$button.classList.add(visibleClassName)
} else {
this.$button.classList.remove(visibleClassName);
this.$button.classList.remove(visibleClassName)
}
}, 200)
}
Expand Down Expand Up @@ -152,7 +152,7 @@ export function setup (settings = {}) {
observer.disconnect()
create(settings)
}
});
})
domObserver.observe(document.body, {
attributes: true
})
Expand Down Expand Up @@ -214,7 +214,7 @@ function isValidTextfield (elem) {
if (elem.matches('textarea, [contenteditable]')) {
// check if the element is big enough
// to only show the bubble for large textfields
const metrics = elem.getBoundingClientRect();
const metrics = elem.getBoundingClientRect()
if (metrics.width > 100 && metrics.height > 34) {
return true
}
Expand Down Expand Up @@ -275,7 +275,7 @@ function showBubble (textfield) {
// position the element relative to it's offsetParent
const offsetRight = offsetParent.offsetWidth - textfield.offsetLeft - textfield.offsetWidth

let top = textfield.offsetTop;
let top = textfield.offsetTop
const scrollParent = findScrollParent(textfield)
if (scrollParent) {
top = getTopPosition(textfield, scrollParent)
Expand Down

0 comments on commit 8802498

Please sign in to comment.