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 23fa79994d..9439df9d4f 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 @@ -181,6 +181,11 @@ const Toolbar = memo(function Toolbar() { id="ol-cm-toolbar-wrapper" className={classNames('ol-cm-toolbar-wrapper', { 'ol-cm-toolbar-wrapper-indented': showReviewPanelHeader, + // The border is only needed when the header is flush with the + // toolbar, which is the case when tabs are disabled and the review + // panel is shown + 'ol-cm-toolbar-wrapper-needs-border': + showReviewPanelHeader && !tabsVisible, })} >