Skip to content

Commit 7fef395

Browse files
authored
Feat component page style (#24)
* feat: 调整组件页样式 * feat: 调整标题栏背景 * feat: 隐藏博客按钮
1 parent 9bd6138 commit 7fef395

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/demo/src/pages/component/index.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@
1313
display: flex;
1414
flex-direction: row;
1515
padding: 12px 0;
16-
height: 100%;
1716
margin-top: 50px;
1817
.demo-container {
1918
width: 10%;
19+
min-width: 100px;
2020
height: 100%;
2121
padding-top: 8px;
2222
padding-right: 20px;
23+
margin-left: 5px;
2324
display: flex;
2425
align-items: center;
2526
flex-direction: column;
27+
position: sticky;
28+
top: 80px;
2629
.demo-item {
2730
// background-color: bisque;
2831
border: 1px solid rgba(0, 0, 0, 0.056);

packages/demo/src/pages/home/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const navigatorList = [
1212
text: '组件',
1313
path: '/components',
1414
},
15-
{
16-
text: '博客',
17-
path: '/blogs',
18-
},
15+
// {
16+
// text: '博客',
17+
// path: '/blogs',
18+
// },
1919
];
2020

2121
const Home: React.FC = () => {

0 commit comments

Comments
 (0)