You've already forked obsidian-visualiser
Rollback CharacterEditor to the previous version
This commit is contained in:
@@ -81,7 +81,7 @@ export function popper(container: HTMLElement, properties?: PopperProperties)
|
||||
let state: FloatState = 'hidden', timeout: Timer;
|
||||
const arrow = svg('svg', { class: ' group-data-[pinned]:hidden absolute fill-light-35 dark:fill-dark-35', attributes: { width: "12", height: "8", viewBox: "0 0 20 10" } }, [svg('polygon', { attributes: { points: "0,0 20,0 10,10" } })]);
|
||||
const content = dom('div', { class: properties?.class, style: properties?.style });
|
||||
const floater = dom('div', { class: 'fixed hidden group', attributes: { 'data-state': 'closed' } }, [ content, properties?.arrow ? arrow : undefined ]);
|
||||
const floater = dom('div', { class: 'fixed hidden group z-50', attributes: { 'data-state': 'closed' } }, [ content, properties?.arrow ? arrow : undefined ]);
|
||||
const rect = properties?.viewport?.getBoundingClientRect() ?? 'viewport';
|
||||
|
||||
function update()
|
||||
@@ -346,7 +346,7 @@ export function followermenu(target: FloatingUI.ReferenceElement, content: NodeC
|
||||
properties?.priority || document.addEventListener('mousedown', close);
|
||||
container.addEventListener('mousedown', cancelPropagation);
|
||||
|
||||
const stop = FloatingUI.autoUpdate(target, container, update, {
|
||||
let stop = FloatingUI.autoUpdate(target, container, update, {
|
||||
animationFrame: true,
|
||||
layoutShift: false,
|
||||
elementResize: false,
|
||||
|
||||
Reference in New Issue
Block a user