File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2928const PageTitle = styled . h2 `
@@ -34,27 +33,25 @@ const PageTitle = styled.h2`
3433
3534const 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
4947const 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
6057import { fetchComplexes } from '../services/api' ;
You can’t perform that action at this time.
0 commit comments