From cf7709498e357b4e29d180a1b785bf3b16ed7b6d Mon Sep 17 00:00:00 2001 From: tpoisseau <22891227+tpoisseau@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:01:57 +0200 Subject: [PATCH] fix(Dialog): button ok on the right, cancel on the left Refs: https://github.com/cheminfo/openchemlib-js/issues/136 --- lib/canvas_editor/editor_dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/canvas_editor/editor_dialog.js b/lib/canvas_editor/editor_dialog.js index d3ace6b9..5058a24d 100644 --- a/lib/canvas_editor/editor_dialog.js +++ b/lib/canvas_editor/editor_dialog.js @@ -68,7 +68,7 @@ class EditorDialog { } const buttons = document.createElement('div'); buttons.style.display = 'flex'; - buttons.style.justifyContent = 'flex-end'; + buttons.style.flexDirection = 'row-reverse'; buttons.style.gap = '15px'; const okButton = document.createElement('button'); okButton.textContent = 'OK';