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({
pluginKey: 'textBubbleMenu',
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({
pluginKey: 'linkBubbleMenu',

View File

@ -10,6 +10,10 @@
}
.notificationsCounter {
@include media-breakpoint-up(md) {
left: 1.8rem;
}
align-items: center;
background-color: #E84500;
border-radius: 0.8rem;
@ -25,8 +29,4 @@
position: absolute;
text-align: center;
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,
countWords,
setForm,
setFormErrors,
setFormErrors
}
const value: EditorContextType = {