Skip to content

Commit 41bf705

Browse files
authored
Merge pull request #11 from aeagle/ui-demo
Ui demo
2 parents b9b508f + ce286d1 commit 41bf705

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

demo/src/App.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pre {
5555
}
5656
}
5757

58-
.mobileDesc {
58+
.mobileDesc, .mobile {
5959
display: none;
6060
}
6161

@@ -104,6 +104,10 @@ pre {
104104
display: none;
105105
}
106106

107+
.mobile {
108+
display: block;
109+
}
110+
107111
.description {
108112
font-size: 80%;
109113

demo/src/docs/Intro.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as React from 'react';
2+
import { Button, Icon } from 'antd';
23

34
export const Intro = () => {
45
return (
@@ -7,6 +8,12 @@ export const Intro = () => {
78
React Spaces allow you to divide a page or container into nestable, anchored, scrollable and resizable spaces.
89
</p>
910

11+
<div className="mobile" style={{ marginBottom: 15 }}>
12+
<Button type="primary" onClick={() => window.location.href = 'https://github.com/aeagle/react-spaces'}><Icon type="github" /> View on GitHub</Button>
13+
&nbsp; &nbsp;
14+
<img style={{ position: 'relative', top: -2 }} alt="NPM version" src="https://img.shields.io/npm/v/react-spaces.svg" />
15+
</div>
16+
1017
<p>
1118
<h2>Features</h2>
1219

demo/src/docs/VersionHistory.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ export const VersionHistory = () => {
55
<>
66
<h2 id="changes">Version history</h2>
77

8+
<div>
9+
<h3>0.1.5</h3>
10+
<ul>
11+
<li>Fixed resize handles being covered by nested spaces preventing resizing</li>
12+
</ul>
13+
</div>
814
<div>
915
<h3>0.1.4</h3>
1016
<ul>

0 commit comments

Comments
 (0)