File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
src/frontend/apps/impress/src/features/docs/doc-editor
components/BlockNoteToolBar Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 66import { forEach , isArray } from 'lodash' ;
77import React , { useMemo } from 'react' ;
88import { useTranslation } from 'react-i18next' ;
9+ import { css } from 'styled-components' ;
10+
11+ import { Text } from '@/components' ;
912
1013type Block = {
1114 type : string ;
@@ -83,8 +86,18 @@ export function MarkdownButton() {
8386 mainTooltip = { t ( 'Convert Markdown' ) }
8487 onClick = { handleConvertMarkdown }
8588 className = "--docs--editor-markdown-button"
86- >
87- M
88- </ Components . FormattingToolbar . Button >
89+ label = "M"
90+ icon = {
91+ < Text
92+ aria-hidden = { true }
93+ $css = { css `
94+ font-family : var (--c--theme--font--families--base );
95+ ` }
96+ $weight = "bold"
97+ >
98+ M
99+ </ Text >
100+ }
101+ />
89102 ) ;
90103}
Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ export const cssEditor = (readonly: boolean) => css`
112112 .bn-block-outer : not ([data-prev-depth-changed ]): before {
113113 border-left : none;
114114 }
115+
116+ .bn-toolbar {
117+ max-width : 95vw ;
118+ }
115119 }
116120
117121 & .bn-editor {
You can’t perform that action at this time.
0 commit comments