-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
191 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- develop | ||
|
||
env: | ||
BUILD_VERSION: '1.11.1' | ||
BUILD_VERSION: '1.11.2' | ||
|
||
jobs: | ||
select-environment: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
src/features/markdown/components/MarkdownToolbar.presenter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// | ||
// Copyright (c) 2023-2024 karamem0 | ||
// | ||
// This software is released under the MIT License. | ||
// | ||
// https://github.com/karamem0/hitofude/blob/main/LICENSE | ||
// | ||
|
||
import React from 'react'; | ||
|
||
import { Toolbar, ToolbarButton } from '@fluentui/react-components'; | ||
import { | ||
BoldIcon, | ||
ItalicIcon, | ||
UnderlineIcon | ||
} from '@fluentui/react-icons-mdl2'; | ||
|
||
import { css } from '@emotion/react'; | ||
|
||
interface MarkdownToolbarProps { | ||
className?: string | ||
} | ||
|
||
function MarkdownToolbar(props: Readonly<MarkdownToolbarProps>) { | ||
|
||
const { className } = props; | ||
|
||
return ( | ||
<div | ||
className={className} | ||
css={css` | ||
height: 2.5rem; | ||
`}> | ||
<Toolbar> | ||
<ToolbarButton | ||
icon={( | ||
<BoldIcon | ||
css={css` | ||
font-size: 1rem; | ||
line-height: 1rem; | ||
`} /> | ||
)} /> | ||
<ToolbarButton | ||
icon={( | ||
<ItalicIcon | ||
css={css` | ||
font-size: 1rem; | ||
line-height: 1rem; | ||
`} /> | ||
)} /> | ||
<ToolbarButton | ||
icon={( | ||
<UnderlineIcon | ||
css={css` | ||
font-size: 1rem; | ||
line-height: 1rem; | ||
`} /> | ||
)} /> | ||
</Toolbar> | ||
</div> | ||
); | ||
|
||
} | ||
|
||
export default MarkdownToolbar; |
Oops, something went wrong.