Skip to content

Commit

Permalink
editor: improve note node (#762)
Browse files Browse the repository at this point in the history
- update editor.
- update editor css from updated NoteNode caller.
  • Loading branch information
irahopkinson authored Feb 13, 2024
1 parent 1429705 commit ebfe3fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
14 changes: 7 additions & 7 deletions extensions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"platform-bible-utils": "file:../lib/platform-bible-utils"
},
"devDependencies": {
"@biblionexus-foundation/platform-editor": "^0.0.2",
"@biblionexus-foundation/platform-editor": "^0.0.5",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.15.6",
Expand Down
4 changes: 2 additions & 2 deletions extensions/src/resource-viewer/src/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
content: attr(data-code) ' ';
}

.note {
.immutable-note-caller {
vertical-align: super;
font-size: 80%;
}

.note > button {
.immutable-note-caller > button {
cursor: pointer;
color: #00f;
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,5 @@ globalThis.webViewComponent = function ResourceViewer({
}
}, [usx]);

return (
<Editor usj={usj} scrRefState={[scrRef, setScrRef]} logger={logger} />
);
return <Editor usj={usj} scrRef={scrRef} setScrRef={setScrRef} logger={logger} />;
};

0 comments on commit ebfe3fc

Please sign in to comment.