Skip to content

Commit cdd60b0

Browse files
committed
feat: 调整组件页样式
1 parent 9bd6138 commit cdd60b0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
justify-content: space-between;
1616
padding: 30px 20px 0;
1717
z-index: 100;
18+
background-color: #fff;
1819
.title {
1920
transform: translate3d(0, -18px, 0);
2021
width: 200px;

0 commit comments

Comments
 (0)