Skip to content

Commit

Permalink
chore: update action type
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 23, 2023
1 parent 0e0fcde commit a5c074e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion components/editor/intelli/menu/menu-bubble.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const MenuBubble = ({ editor }) => {
// 根据长度优化
return <BubbleMenu className={'ToggleGroup'} editor={editor} tippyOptions={{ duration: 100 }}>
{selectLength < 64 && <div className={'BubbleMenuGroup'}>
<button>扩写</button>
<button
value="left" aria-label="Left aligned"
className={editor.isActive('bold') ? 'is-active BubbleMenuItem' : 'BubbleMenuItem'}
>扩写</button>
</div>
}
{selectLength > 64 && <div className={'BubbleMenuGroup'}>
Expand Down
5 changes: 2 additions & 3 deletions pages/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
margin: 2rem 0;
}

button {
.tiptap button {
all: unset;
}

Expand Down Expand Up @@ -219,8 +219,7 @@ button {
}

.ProseMirror-focused {
border: 1px solid rgb(128, 128, 128);
outline: none;
outline: #0d0d0d;
}

.ProseMirror p {
Expand Down

0 comments on commit a5c074e

Please sign in to comment.