Skip to content

Commit ea3b2cd

Browse files
committed
Fixed complex card design
1 parent 65209e3 commit ea3b2cd

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

frontend/src/pages/ComplexesPage.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const MainContent = styled.main`
2323
display: flex;
2424
justify-content: center;
2525
margin: 0 auto;
26-
padding: 2rem 1rem;
2726
`;
2827

2928
const PageTitle = styled.h2`
@@ -34,27 +33,25 @@ const PageTitle = styled.h2`
3433

3534
const ScrollSnapContainer = styled.div`
3635
width: 100%;
37-
max-width: 700px; /* コンテンツの最大幅、UsagiScrollの .c-wrap に近い */
38-
height: calc(100vh - 5rem - 5rem); /* Header/Footerを除いた高さ */
36+
height: calc(100vh - 5rem - 5rem);
3937
overflow-y: scroll;
4038
scroll-snap-type: y mandatory;
4139
-webkit-overflow-scrolling: touch;
42-
scrollbar-width: none; /* Firefox */
40+
scrollbar-width: none;
4341
&::-webkit-scrollbar {
4442
/* Chrome, Safari, Opera */
4543
display: none;
4644
}
4745
`;
4846

4947
const ComplexScrollItem = styled.div`
50-
scroll-snap-align: start; /* 各アイテムの開始位置でスナップ */
51-
height: 100%; /* ScrollSnapContainerの高さ一杯に広がる */
48+
scroll-snap-align: start;
49+
height: 100%;
50+
width: 100%;
5251
display: flex;
5352
flex-direction: column;
5453
justify-content: center;
5554
align-items: center;
56-
/* UsagiScrollの .c-inner のようなスタイルをここに適用 */
57-
/* border-top: 1px solid #111; */
5855
`;
5956

6057
import { fetchComplexes } from '../services/api';

0 commit comments

Comments
 (0)