mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] format
This commit is contained in:
parent
4351f43bb9
commit
7a4e2f4145
2 changed files with 5 additions and 5 deletions
|
@ -203,14 +203,14 @@ export default {
|
|||
// Set the highlight/tooltip as being fixed position the highlighted element
|
||||
// is fixed. We do this so that we don't mistakenly take scroll position
|
||||
// into account when setting the tooltip/highlight positioning.
|
||||
//
|
||||
// We only do this once due to how expensive computed styles are to calculate,
|
||||
//
|
||||
// We only do this once due to how expensive computed styles are to calculate,
|
||||
// and are unlikely to change. If that turns out to be wrong, reconsider this.
|
||||
const { isFixed } = getElementsPositionInDocument(originalElement);
|
||||
if (isFixed) {
|
||||
tooltip.style.position = highlight.style.position = 'fixed';
|
||||
}
|
||||
|
||||
|
||||
attachTooltipToHighlight(highlight, tooltip, originalElement);
|
||||
|
||||
canvas.append(highlight);
|
||||
|
|
|
@ -111,8 +111,8 @@ export default {
|
|||
// Set the highlight/tooltip as being fixed position the highlighted element
|
||||
// is fixed. We do this so that we don't mistakenly take scroll position
|
||||
// into account when setting the tooltip/highlight positioning.
|
||||
//
|
||||
// We only do this once due to how expensive computed styles are to calculate,
|
||||
//
|
||||
// We only do this once due to how expensive computed styles are to calculate,
|
||||
// and are unlikely to change. If that turns out to be wrong, reconsider this.
|
||||
const { isFixed } = getElementsPositionInDocument(islandElement);
|
||||
if (isFixed) {
|
||||
|
|
Loading…
Add table
Reference in a new issue