This commit is contained in:
Untone 2024-09-15 23:17:21 +03:00
parent 53299fc183
commit 433a74a58a
3 changed files with 7 additions and 6 deletions

View File

@ -81,7 +81,8 @@ const SimplifiedEditor = (props: Props) => {
BubbleMenu.configure({ BubbleMenu.configure({
pluginKey: 'textBubbleMenu', pluginKey: 'textBubbleMenu',
element: textBubbleMenuRef(), element: textBubbleMenuRef(),
shouldShow: ({ view, state }) => Boolean(props.onlyBubbleControls && view.hasFocus() && !state.selection.empty) shouldShow: ({ view, state }) =>
Boolean(props.onlyBubbleControls && view.hasFocus() && !state.selection.empty)
}), }),
BubbleMenu.configure({ BubbleMenu.configure({
pluginKey: 'linkBubbleMenu', pluginKey: 'linkBubbleMenu',

View File

@ -10,6 +10,10 @@
} }
.notificationsCounter { .notificationsCounter {
@include media-breakpoint-up(md) {
left: 1.8rem;
}
align-items: center; align-items: center;
background-color: #E84500; background-color: #E84500;
border-radius: 0.8rem; border-radius: 0.8rem;
@ -25,8 +29,4 @@
position: absolute; position: absolute;
text-align: center; text-align: center;
top: -0.5rem; top: -0.5rem;
@include media-breakpoint-up(md) {
left: 1.8rem;
}
} }

View File

@ -278,7 +278,7 @@ export const EditorProvider = (props: { children: JSX.Element }) => {
toggleEditorPanel, toggleEditorPanel,
countWords, countWords,
setForm, setForm,
setFormErrors, setFormErrors
} }
const value: EditorContextType = { const value: EditorContextType = {