mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
fix(app): show the format toolbar on double-click selections (#2566)
This commit is contained in:
1 parent
977b6767cd
commit
10ba2ca896
4 files changed
+78
-7
No files matched your search
@@ -271,7 +271,7 @@ function SelectionToolbarSurface({
|
||||
}),
|
||||
[editor],
|
||||
);
|
||||
const {ref, state, style, updatePosition} = useAntiShiftFloating(virtualReference, true, {
|
||||
const {setFloating, state, style, updatePosition} = useAntiShiftFloating(virtualReference, true, {
|
||||
placement: 'top',
|
||||
offsetMainAxis: 8,
|
||||
shouldAutoUpdate: true,
|
||||
@@ -381,7 +381,7 @@ function SelectionToolbarSurface({
|
||||
>
|
||||
<flx-lexical-selection-formatting-toolbar
|
||||
ref={(element) => {
|
||||
(ref as React.MutableRefObject<HTMLElement | null>).current = element;
|
||||
setFloating(element);
|
||||
toolbarRef.current = element;
|
||||
}}
|
||||
className={flxElementClassName(styles.toolbar)}
|
||||
|
||||
Reference in new issue
Block a user