Skip to content

Commit

Permalink
Allow more code-annotation fallbacks
Browse files Browse the repository at this point in the history
Fixes #5339
  • Loading branch information
dragonstyle committed Dec 4, 2023
1 parent 0c39d80 commit 78af8d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/changelog-1.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@

## Code Annotations

- ([#5339](https://github.com/quarto-dev/quarto-cli/issues/5339)): Improve behavior of code annotations when present on scrollable slides
- ([#6016](https://github.com/quarto-dev/quarto-cli/issues/6016)): Ensure that annotations are on the correct line in Safari
- ([#6385](https://github.com/quarto-dev/quarto-cli/issues/6385)): Add support for code annotation in fenced code cells
- ([#7056](https://github.com/quarto-dev/quarto-cli/issues/7056)): Only make content of the hover annotation scrollable if it necessary
Expand Down
2 changes: 1 addition & 1 deletion src/resources/formats/html/templates/quarto-html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
options: {
flipVariations: false, // true by default
allowedAutoPlacements: ['right'],
fallbackPlacements: ['right', 'top', 'top-start', 'top-end'],
fallbackPlacements: ['right', 'top', 'top-start', 'top-end', 'bottom', 'bottom-start', 'bottom-end', 'left'],
},
},
{
Expand Down

0 comments on commit 78af8d6

Please sign in to comment.