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