diff --git a/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx b/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx index ba765ca886..74a44a0c11 100644 --- a/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx +++ b/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx @@ -168,6 +168,8 @@ const Toolbar = memo(function Toolbar() { /> )} + +
{ } const devToolsButton = ViewPlugin.define(view => { - const getContainer = () => document.querySelector('.ol-cm-toolbar-end') + const getContainer = () => + document.querySelector('.formatting-buttons-wrapper') const removeButton = () => { getContainer()?.querySelector('#cm6-dev-tools-button')?.remove() @@ -37,7 +38,7 @@ const devToolsButton = ViewPlugin.define(view => { view.dispatch(toggleDevTools()) }) - getContainer()?.append(button) + getContainer()?.prepend(button) } window.setTimeout(() => { diff --git a/services/web/frontend/stylesheets/app/editor/toolbar.less b/services/web/frontend/stylesheets/app/editor/toolbar.less index 04383ab7af..a27532b7ef 100644 --- a/services/web/frontend/stylesheets/app/editor/toolbar.less +++ b/services/web/frontend/stylesheets/app/editor/toolbar.less @@ -334,6 +334,10 @@ overflow: hidden; } +.formatting-buttons-wrapper { + display: flex; +} + .formatting-btn { color: @formatting-btn-color; background-color: @formatting-btn-bg;