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",
"options": "Options",
"modal_title": "Configure Highlights List",
"menu_configure": "Configure highlights list...",
"no_highlights": "No highlights found."
},
"quick-search": {

View File

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