Skip to content

Commit 9474dfa

Browse files
committed
style: Improve presentation
1 parent 3da4b78 commit 9474dfa

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

example/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export default () => {
66
return (
77
<div css={style}>
88
<div className="content">
9-
<Carousel />
10-
<Carousel />
11-
<Carousel />
9+
<div className="carousel"><Carousel /></div>
10+
<div className="carousel"><Carousel /></div>
11+
<div className="carousel"><Carousel /></div>
1212
</div>
1313
</div>
1414
);

example/style.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export default `
1010
1111
.carousel {
1212
margin-top: 10px;
13-
width: 500px;
14-
margin: auto;
1513
}
1614
1715
.text-item {
@@ -21,8 +19,9 @@ export default `
2119
2220
.text-item-content {
2321
font-size: 20px;
24-
color: white;
2522
margin: auto;
23+
text-align: center;
24+
color: white;
2625
width: 50%;
2726
}
2827
`;

0 commit comments

Comments
 (0)