Skip to content

Commit

Permalink
Merge pull request #482 from d-i-t-a/develop
Browse files Browse the repository at this point in the history
2.3.13
  • Loading branch information
aferditamuriqi authored Aug 15, 2023
2 parents f498bd7 + 1ea7078 commit 3beff82
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 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": "@d-i-t-a/reader",
"version": "2.3.12",
"version": "2.3.13",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/modules/highlight/TextHighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,13 +1122,16 @@ export class TextHighlighter {
toolbox.style.transform = "revert";
toolbox.style.width = "100%";
toolbox.style.textAlign = "center";
toolbox.style.position = "absolute";
toolbox.style.setProperty("--content", "revert");
} else if (this.properties?.menuPosition === MenuPosition.BOTTOM) {
toolbox.style.bottom = "0px";
toolbox.style.left = "0px";
toolbox.style.transform = "revert";
toolbox.style.width = "100%";
toolbox.style.textAlign = "center";
toolbox.style.position = "absolute";
toolbox.style.setProperty("--content", "revert");
} else {
const paginated = this.navigator.view?.isPaginated();
if (paginated) {
Expand Down
3 changes: 2 additions & 1 deletion src/styles/sass/reader/_toolbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
background: gainsboro;
display: none;
width: fit-content;
--content: '';
&:before {
$size: 0.4rem;
content: '';
content: var(--content);
position: absolute;
width: $size;
height: $size;
Expand Down

0 comments on commit 3beff82

Please sign in to comment.