remove additional aligns in incut menu (#198)

This commit is contained in:
Ilya Y 2023-08-31 08:32:54 +03:00 committed by GitHub
parent cb2190405d
commit 1a233d074d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 17 deletions

View File

@ -17,13 +17,6 @@ export const IncutBubbleMenu = (props: Props) => {
const [substratBubbleOpen, setSubstratBubbleOpen] = createSignal(false)
return (
<div ref={props.ref} class={styles.BubbleMenu}>
<button
type="button"
class={styles.bubbleMenuButton}
onClick={() => props.editor.chain().focus().setArticleFloat('left').run()}
>
<Icon name="editor-image-align-left" />
</button>
<button
type="button"
class={styles.bubbleMenuButton}
@ -46,15 +39,6 @@ export const IncutBubbleMenu = (props: Props) => {
>
<Icon name="editor-image-half-align-right" />
</button>
<button
type="button"
class={styles.bubbleMenuButton}
onClick={() => props.editor.chain().focus().setArticleFloat('right').run()}
>
<Icon name="editor-image-align-right" />
</button>
<div class={styles.delimiter} />
<div class={styles.dropDownHolder}>
<button

View File

@ -4,7 +4,7 @@ declare module '@tiptap/core' {
interface Commands<ReturnType> {
Article: {
toggleArticle: () => ReturnType
setArticleFloat: (float: null | 'left' | 'half-left' | 'right' | 'half-right') => ReturnType
setArticleFloat: (float: null | 'half-left' | 'half-right') => ReturnType
setArticleBg: (bg: null | string) => ReturnType
}
}