mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-29 21:21:15 +02:00
This commit is contained in:
parent
d848865b0d
commit
55d98346ee
@ -456,6 +456,11 @@ const NoteListComponent = (props: Props) => {
|
||||
useEffect(() => {
|
||||
// When a note list item is styled by userchrome.css, its height is reflected.
|
||||
// Ref. https://github.com/laurent22/joplin/pull/6542
|
||||
if (dragOverTargetNoteIndex !== null) {
|
||||
// When dragged, its height should not be considered.
|
||||
// Ref. https://github.com/laurent22/joplin/issues/6639
|
||||
return;
|
||||
}
|
||||
const noteItem = Object.values<any>(itemAnchorRefs_.current)[0]?.current;
|
||||
const actualItemHeight = noteItem?.getHeight() ?? 0;
|
||||
if (actualItemHeight >= 8) { // To avoid generating too many narrow items
|
||||
|
Loading…
x
Reference in New Issue
Block a user