From 78af8d606b80f17a4ffa9a61211e2c5ed8988c8a Mon Sep 17 00:00:00 2001 From: Charles Teague Date: Mon, 4 Dec 2023 12:20:11 -0500 Subject: [PATCH] Allow more code-annotation fallbacks Fixes #5339 --- news/changelog-1.4.md | 1 + src/resources/formats/html/templates/quarto-html.ejs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/news/changelog-1.4.md b/news/changelog-1.4.md index f4e1aae6db..a1c64e1913 100644 --- a/news/changelog-1.4.md +++ b/news/changelog-1.4.md @@ -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 diff --git a/src/resources/formats/html/templates/quarto-html.ejs b/src/resources/formats/html/templates/quarto-html.ejs index 6c58ded56b..05f1d179e9 100644 --- a/src/resources/formats/html/templates/quarto-html.ejs +++ b/src/resources/formats/html/templates/quarto-html.ejs @@ -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'], }, }, {