File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "react" : " ^19.1.0" ,
2121 "react-contexify" : " ^5.0.0" ,
2222 "react-dom" : " ^19.1.0" ,
23- "react-easy-sort" : " ^1.5.1 " ,
23+ "react-easy-sort" : " ^1.6.0 " ,
2424 "react-error-boundary" : " ^3.1.4" ,
2525 "react-icons" : " ^5.2.1" ,
2626 "react-infinite-scroll-hook" : " ^6.0.0" ,
Original file line number Diff line number Diff line change 1- import { useLayoutEffect , useRef } from 'react'
1+ import { useEffect , useRef } from 'react'
22import SortableList , { SortableItem } from 'react-easy-sort'
33import { SUPPORTED_CARDS } from 'src/config/supportedCards'
44import { CustomRssCard } from 'src/features/cards'
@@ -27,7 +27,7 @@ export const DesktopCards = ({
2727 }
2828 }
2929
30- useLayoutEffect ( ( ) => {
30+ useEffect ( ( ) => {
3131 scrollHolderRef . current = document . querySelector ( '.Cards' )
3232 } , [ ] )
3333
@@ -36,10 +36,9 @@ export const DesktopCards = ({
3636 as = "div"
3737 onSortEnd = { onSortEnd }
3838 lockAxis = "x"
39- customHolderRef = { scrollHolderRef }
4039 className = "Cards HorizontalScroll"
4140 draggedItemClassName = "draggedBlock" >
42- { cards
41+ { [ ... cards ]
4342 . sort ( ( a , b ) => a . id - b . id )
4443 . map ( ( card , index ) => {
4544 const constantCard = AVAILABLE_CARDS . find ( ( c ) => c . value === card . name )
@@ -52,11 +51,7 @@ export const DesktopCards = ({
5251 return (
5352 < SortableItem key = { card . name } >
5453 < div >
55- < Component
56- key = { card . name }
57- meta = { constantCard }
58- withAds = { index === adsConfig . columnPosition }
59- />
54+ < Component meta = { constantCard } withAds = { index === adsConfig . columnPosition } />
6055 </ div >
6156 </ SortableItem >
6257 )
Original file line number Diff line number Diff line change 1010 align-items : center;
1111 justify-content : center;
1212 max-width : 330px ;
13- z-index : 1 ;
13+ z-index : 0 ;
1414 margin : 0 auto;
1515}
1616.banneradv a {
122122 aspect-ratio : 1 ;
123123 height : fit-content;
124124 width : 45% ;
125- z-index : 2 ;
125+ z-index : 1 ;
126126 object-fit : cover;
127127 border-radius : 10px ;
128128 transition : all 0.3s cubic-bezier (0.4 , 0 , 0.2 , 1 );
Original file line number Diff line number Diff line change 11import { useEffect , useMemo , useState } from 'react'
2+ import { createPortal } from 'react-dom'
23import { HiSparkles } from 'react-icons/hi'
34import ReactMarkdown from 'react-markdown'
45import BeatLoader from 'react-spinners/BeatLoader'
@@ -67,26 +68,30 @@ export const Changelog = () => {
6768 } , [ versions ] )
6869 return (
6970 < >
70- < ReactTooltip
71- id = { tooltipId }
72- event = "click"
73- scrollHide = { false }
74- afterShow = { ( ) => {
75- setTooltipShown ( true )
76- } }
77- place = "bottom"
78- className = "changelogTooltip scrollable"
79- globalEventOff = "click" >
80- { isLoading ? (
81- < div className = "tooltipLoading" >
82- < BeatLoader color = { '#A9B2BD' } loading = { isLoading } size = { 15 } />
83- </ div >
84- ) : isError || ! versions . length ? (
85- < p className = "tooltipErrorMsg" > Failed to load the changelog</ p >
86- ) : (
87- versionsMemo
88- ) }
89- </ ReactTooltip >
71+ { createPortal (
72+ < ReactTooltip
73+ id = { tooltipId }
74+ event = "click"
75+ scrollHide = { false }
76+ afterShow = { ( ) => {
77+ setTooltipShown ( true )
78+ } }
79+ place = "bottom"
80+ className = "changelogTooltip scrollable"
81+ globalEventOff = "click" >
82+ { isLoading ? (
83+ < div className = "tooltipLoading" >
84+ < BeatLoader color = { '#A9B2BD' } loading = { isLoading } size = { 15 } />
85+ </ div >
86+ ) : isError || ! versions . length ? (
87+ < p className = "tooltipErrorMsg" > Failed to load the changelog</ p >
88+ ) : (
89+ versionsMemo
90+ ) }
91+ </ ReactTooltip > ,
92+ document . body
93+ ) }
94+
9095 < button
9196 aria-label = "Open changelog"
9297 className = { 'changelogButton' + ( ! isChangelogRead ( ) ? ' active' : '' ) }
Original file line number Diff line number Diff line change @@ -5760,7 +5760,7 @@ react-dom@^19.1.0:
57605760 dependencies :
57615761 scheduler "^0.26.0"
57625762
5763- react-easy-sort@^1.5.1 :
5763+ react-easy-sort@^1.6.0 :
57645764 version "1.6.0"
57655765 resolved "https://registry.yarnpkg.com/react-easy-sort/-/react-easy-sort-1.6.0.tgz#b40cce827913f0640c1b2e5438dd4d007e26db32"
57665766 integrity sha512-zd9Nn90wVlZPEwJrpqElN87sf9GZnFR1StfjgNQVbSpR5QTSzCHjEYK6REuwq49Ip+76KOMSln9tg/ST2KLelg==
You can’t perform that action at this time.
0 commit comments