Kaynağa Gözat

[WEB] Remove the left border at the start of the toolbar (#34174)

* removing the first child left border

* adding border for review panel

GitOrigin-RevId: 53f1afc63f0860bc46acff4875652454cf6ced6b
Davinder Singh 2 ay önce
ebeveyn
işleme
820d5a45ec

+ 6 - 1
services/web/frontend/js/features/source-editor/extensions/toolbar/toolbar-panel.ts

@@ -137,7 +137,9 @@ const toolbarTheme = EditorView.theme({
     padding: '0 4px',
     margin: '4px 0',
     lineHeight: '1',
-    borderLeft: '1px solid rgba(125, 125, 125, 0.3)',
+    '&:not(:first-child)': {
+      borderLeft: '1px solid rgba(125, 125, 125, 0.3)',
+    },
     '&.ol-cm-toolbar-end': {
       borderLeft: 'none',
     },
@@ -150,6 +152,9 @@ const toolbarTheme = EditorView.theme({
       padding: 0,
     },
   },
+  '.ol-cm-toolbar-wrapper-indented .ol-cm-toolbar-button-group:first-child': {
+    borderLeft: '1px solid rgba(125, 125, 125, 0.3)',
+  },
   '.ol-cm-toolbar-button': {
     display: 'inline-flex',
     alignItems: 'center',