fix: make menus scrollable when there's not enough space
This commit is contained in:
@@ -31,13 +31,13 @@ const NotesContextMenu = observer(({ appState }: Props) => {
|
||||
return appState.notes.contextMenuOpen ? (
|
||||
<div
|
||||
ref={contextMenuRef}
|
||||
className="sn-dropdown max-w-80 flex flex-col py-2 absolute"
|
||||
style={{ ...appState.notes.contextMenuPosition }}
|
||||
className="sn-dropdown max-h-120 max-w-80 flex flex-col py-2 overflow-y-scroll fixed"
|
||||
style={{
|
||||
...appState.notes.contextMenuPosition,
|
||||
maxHeight: appState.notes.contextMenuMaxHeight,
|
||||
}}
|
||||
>
|
||||
<NotesOptions
|
||||
appState={appState}
|
||||
closeOnBlur={closeOnBlur}
|
||||
/>
|
||||
<NotesOptions appState={appState} closeOnBlur={closeOnBlur} />
|
||||
</div>
|
||||
) : null;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user