chore(right_pane): use menu instead of button for highlights list

This commit is contained in:
Elian Doran 2025-12-20 11:42:21 +02:00
parent dced799976
commit a0577dc202
No known key found for this signature in database
2 changed files with 8 additions and 10 deletions

View File

@ -1725,6 +1725,7 @@
"title": "Highlights List", "title": "Highlights List",
"options": "Options", "options": "Options",
"modal_title": "Configure Highlights List", "modal_title": "Configure Highlights List",
"menu_configure": "Configure highlights list...",
"no_highlights": "No highlights found." "no_highlights": "No highlights found."
}, },
"quick-search": { "quick-search": {

View File

@ -32,16 +32,13 @@ export default function HighlightsList() {
<RightPanelWidget <RightPanelWidget
id="highlights" id="highlights"
title={t("highlights_list_2.title")} title={t("highlights_list_2.title")}
buttons={( contextMenuItems={[
<ActionButton {
icon="bx bx-cog" title: t("highlights_list_2.menu_configure"),
text={t("highlights_list_2.options")} uiIcon: "bx bx-cog",
onClick={(e) => { handler: () => setShown(true)
e.stopPropagation(); }
setShown(true); ]}
}}
/>
)}
> >
{noteType === "text" && isReadOnly && <ReadOnlyTextHighlightsList />} {noteType === "text" && isReadOnly && <ReadOnlyTextHighlightsList />}
{noteType === "text" && !isReadOnly && <EditableTextHighlightsList />} {noteType === "text" && !isReadOnly && <EditableTextHighlightsList />}