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 @@ -136,6 +136,10 @@ export const cssEditor = css`
136136 border-left : none;
137137 }
138138
139+ .bn-toolbar {
140+ max-width : 95vw ;
141+ }
142+
139143 /**
140144 * Quotes
141145 */
You can’t perform that action at this time.
0 commit comments