Skip to content

Commit

Permalink
fix(back-top): fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanmeda committed Nov 8, 2022
1 parent 0029c6c commit f894e63
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
27 changes: 8 additions & 19 deletions src/back-top/_example/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,14 @@ export default function Base() {

const rowCols = [
{
height: '171px',
borderRadius: '16px',
width: '165.5px',
height: '165.5px',
borderRadius: '12px',
},
1,
{
width: '80%',
width: '100px',
},
[
{
width: '60%',
},
{
width: '20%',
},
],
];

return (
Expand All @@ -52,14 +45,10 @@ export default function Base() {
<HalfRoundDemo visible={visible1} onClose={onClose1} />
</TDemoBlock>

<div className="content">
{Array.from(Array(4), (item, index) => (
<div className="row" key={index}>
{Array.from(Array(2), (v, key) => (
<div className="item" key={key}>
<Skeleton theme="text" rowCol={rowCols} />
</div>
))}
<div className="group">
{Array.from(Array(4), (item, key) => (
<div className="item" key={key}>
<Skeleton theme="text" rowCol={rowCols} />
</div>
))}
</div>
Expand Down
19 changes: 8 additions & 11 deletions src/back-top/_example/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@
margin-bottom: 15px;
}

.content {
box-sizing: border-box;
width: 100%;
padding: 16px;

.row {
display: flex;
justify-content: space-between;
.item {
width: 47%;
}
.group {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 0 16px 30px 16px;
.item {
width: 47%;
margin-bottom: 16px;
}
}
}

0 comments on commit f894e63

Please sign in to comment.