Skip to content

Commit

Permalink
Add text hint for CreateSchemaButton
Browse files Browse the repository at this point in the history
  • Loading branch information
untunt committed Dec 8, 2024
1 parent 6a52736 commit f505543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Components/SchemaEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,19 @@ const CreateSchemaButton = styled.button`
align-items: center;
justify-content: center;
border-radius: 9999px;
min-width: 1.75rem;
min-height: 1.75rem;
padding: 0 0.375rem;
gap: 0.125rem;
font-size: 1rem;
color: #555;
transition: background-color 150ms;
&:hover,
&:focus {
background-color: #ccc;
}
& > .fa-fw {
width: 1em;
}
`;
const EditorArea = styled.div`
position: relative;
Expand Down Expand Up @@ -748,6 +752,7 @@ export default function SchemaEditor({ state, setState, commonOptions, evaluateH
))}
<CreateSchemaButton title="新增方案" onClick={createSchema.current}>
<FontAwesomeIcon icon={faPlus} fixedWidth />
<div>加載更多注音方案</div>
</CreateSchemaButton>
</TabBar>
<EditorArea ref={setEditorArea} lang="en-x-code">
Expand Down

0 comments on commit f505543

Please sign in to comment.