Skip to content

Commit 47909c9

Browse files
authored
Merge pull request #957 from zhichaosong/master
fix: fr-generator editor styles
2 parents 872aad2 + 79d401f commit 47909c9

5 files changed

Lines changed: 24 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ yarn
1111
yarn build
1212
# 将文档网站跑起来
1313
yarn start
14-
# windows环境
15-
yarn start-win
1614
```
1715

1816
#### 3. 进入文档网站了,如何开发呢?

tools/schema-generator/src/components/Settings/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Settings({ widgets }) {
2727
style={{ height: 30, width: 30, padding: '8px 0 0 8px' }}
2828
onClick={toggleRight}
2929
>
30-
<RightOutlined className="f5" />
30+
<RightOutlined style={{color: '#666'}} />
3131
</div>
3232
);
3333

tools/schema-generator/src/components/Settings/index.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
height: 100%;
88
}
99

10+
// 统一左右编辑区滚动条样式
11+
.fr-generator-container .right-layout ::-webkit-scrollbar {
12+
width: 5px;
13+
background-color: #0001;
14+
}
15+
16+
.fr-generator-container .right-layout ::-webkit-scrollbar-thumb {
17+
background: #0003;
18+
border-radius: 5px;
19+
}
20+
1021
@media screen and (min-width: 60em) {
1122
.fr-generator-container .right-layout {
1223
width: 16rem;

tools/schema-generator/src/components/Sidebar/Element.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.left-item {
2-
width: 7.2rem;
2+
width: 7.0rem;
33
height: 2.2rem;
44
display: flex;
55
margin: 4px;

tools/schema-generator/src/components/Sidebar/index.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
height: 100%;
66
}
77

8+
// 修复 Windows 滚动条太宽导致两列布局变成一列
9+
.left-layout::-webkit-scrollbar {
10+
width: 5px;
11+
background-color: #0001;
12+
}
13+
14+
.left-layout::-webkit-scrollbar-thumb {
15+
background: #0003;
16+
border-radius: 5px;
17+
}
18+
819
.left-layout ul {
920
display: flex;
1021
flex-wrap: wrap;

0 commit comments

Comments
 (0)