Skip to content

Commit eced987

Browse files
committed
website: update style.
1 parent 56d822e commit eced987

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://github.com/uiwjs/react-markdown-editor">
3-
<img alt="react-markdown-editor logo" src="./website/logo.svg?sanitize=true">
3+
<img alt="React Markdown Editor logo" src="./website/logo.svg?sanitize=true">
44
</a>
55
</p>
66

@@ -23,7 +23,7 @@
2323
</p>
2424

2525

26-
[Migrate from @uiw/react-markdown-editor 4.x to 5.x.](https://github.com/uiwjs/react-markdown-editor/releases/tag/v5.0.0)
26+
> Migrate from @uiw/react-markdown-editor [4.x to 5.x.](https://github.com/uiwjs/react-markdown-editor/releases/tag/v5.0.0)
2727
2828
## Install
2929

website/App.module.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.editor {
2-
width: 980px;
2+
max-width: 980px;
33
padding: 0 10px;
44
margin: 0 auto 0 auto;
55
}
66

77
.doc {
8-
width: 960px;
8+
max-width: 980px;
99
padding: 20px 10px 25px 10px;
1010
border-radius: 5px;
1111
margin: 30px auto 0 auto;
@@ -14,7 +14,8 @@
1414
.logo {
1515
svg {
1616
width: auto;
17-
height: 256px;
17+
width: -webkit-fill-available;
18+
max-height: 256px;
1819
margin: 0 auto;
1920
display: block;
2021
fill: var(--color-theme-text);

website/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function App() {
2323
</div>
2424
<div className={styles.editor}>
2525
<MarkdownEditor visible={visible} height="500px" value={mdstr} />
26-
<div style={{ marginTop: 10 }}>
26+
<div style={{ marginTop: 10, display: 'flex', gap: '10px' }}>
2727
<button
2828
onClick={() => {
2929
count += 1;
@@ -33,6 +33,7 @@ export default function App() {
3333
Modify Markdown
3434
</button>
3535
<button onClick={() => setVisible(!visible)}>{visible ? 'Show' : 'Hide'}</button>
36+
<span>v{VERSION}</span>
3637
</div>
3738
</div>
3839
<MarkdownPreview source={DocumentStrSource} className={styles.doc} />

website/react-app-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ declare module '*.md' {
99
const src: any;
1010
export default src;
1111
}
12+
13+
declare var VERSION: string;

0 commit comments

Comments
 (0)