This repository was archived by the owner on Oct 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed
features/viewer/components
pages/EpisodeDetailPage/internal Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 1- import { Suspense , useEffect , useState } from 'react' ;
1+ import { useEffect , useState } from 'react' ;
22import { useInterval , useUpdate } from 'react-use' ;
33import styled from 'styled-components' ;
44
@@ -29,7 +29,8 @@ function getScrollToLeft({
2929
3030 // 画面に表示されているページの中心と、スクロールビューの中心との差分を計算する
3131 // 世界は我々の想像する以上に変化するため、2 ** 12 回繰り返し観測する
32- for ( let times = 0 ; times < 2 ** 12 ; times ++ ) {
32+ // ↑ いらんやろ
33+ for ( let times = 0 ; times < 10 ; times ++ ) {
3334 for ( const [ idx , child ] of children . entries ( ) ) {
3435 const nthChild = idx + 1 ;
3536 const elementClientRect = child . getBoundingClientRect ( ) ;
@@ -219,12 +220,4 @@ const ComicViewerCore: React.FC<Props> = ({ episodeId }) => {
219220 ) ;
220221} ;
221222
222- const ComicViewerCoreWithSuspense : React . FC < Props > = ( { episodeId } ) => {
223- return (
224- < Suspense fallback = { null } >
225- < ComicViewerCore episodeId = { episodeId } />
226- </ Suspense >
227- ) ;
228- } ;
229-
230- export { ComicViewerCoreWithSuspense as ComicViewerCore } ;
223+ export { ComicViewerCore } ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const _Wrapper = styled.div<{
2323 display: grid;
2424 grid-template-columns: 100%;
2525 grid-template-rows: 100%;
26- max- height: ${ ( { $maxHeight } ) => addUnitIfNeeded ( $maxHeight ) } ;
26+ height: ${ ( { $maxHeight } ) => addUnitIfNeeded ( $maxHeight ) } ;
2727 overflow: hidden;
2828` ;
2929
You can’t perform that action at this time.
0 commit comments