mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Fix InView creating div inside ul
Make it create li but only observe one of the skeleton instead
This commit is contained in:
parent
79f1b255d2
commit
3396aa2512
1 changed files with 13 additions and 13 deletions
|
@ -174,11 +174,18 @@ export default ({ hidden }) => {
|
|||
);
|
||||
})}
|
||||
{showMore && (
|
||||
<InView
|
||||
onChange={(inView) => {
|
||||
if (inView) loadStatuses();
|
||||
}}
|
||||
>
|
||||
<>
|
||||
<InView
|
||||
as="li"
|
||||
style={{
|
||||
height: '20vh',
|
||||
}}
|
||||
onChange={(inView) => {
|
||||
if (inView) loadStatuses();
|
||||
}}
|
||||
>
|
||||
<Status skeleton />
|
||||
</InView>
|
||||
<li
|
||||
style={{
|
||||
height: '25vh',
|
||||
|
@ -186,14 +193,7 @@ export default ({ hidden }) => {
|
|||
>
|
||||
<Status skeleton />
|
||||
</li>
|
||||
<li
|
||||
style={{
|
||||
height: '25vh',
|
||||
}}
|
||||
>
|
||||
<Status skeleton />
|
||||
</li>
|
||||
</InView>
|
||||
</>
|
||||
)}
|
||||
</ul>
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue