Skip to content

Commit 78d7474

Browse files
authored
Merge pull request #6152 from ethereum/yann300-patch-60
fix accept/reject position
2 parents cf296a9 + d1b099c commit 78d7474

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,11 @@ export const EditorUI = (props: EditorUIProps) => {
12041204
function addAcceptDeclineWidget(id, editor, position, acceptHandler, rejectHandler, acceptAllHandler?, rejectAllHandler?) {
12051205
const widget = editor.addContentWidget({
12061206
allowEditorOverflow: true,
1207+
afterRender: () => {
1208+
if (document.getElementById(id)) {
1209+
document.getElementById(id).style.left = '0px'
1210+
}
1211+
},
12071212
getDomNode: () => {
12081213
if (document.getElementById(id)) {
12091214
return document.getElementById(id)

0 commit comments

Comments
 (0)