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