fix: @unixzii feature request
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
b7653494b7
commit
b41a78d5c6
|
|
@ -236,14 +236,7 @@ const SwipeWrapper: FC<{
|
|||
}, [active])
|
||||
|
||||
if (reduceMotion) {
|
||||
return (
|
||||
<div
|
||||
ref={containerRef}
|
||||
|
||||
>
|
||||
{children[currentAnimtedActive]}
|
||||
</div>
|
||||
)
|
||||
return <div ref={containerRef}>{children[currentAnimtedActive]}</div>
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ export function Component() {
|
|||
<FeedResponsiveResizerContainer containerRef={containerRef}>
|
||||
<FeedColumn>
|
||||
<CornerPlayer />
|
||||
|
||||
<FooterInfo />
|
||||
|
||||
{ELECTRON && <AutoUpdater />}
|
||||
|
|
@ -192,6 +191,22 @@ const FeedResponsiveResizerContainer = ({
|
|||
}
|
||||
}, [feedColumnShow])
|
||||
|
||||
useEffect(() => {
|
||||
if (!isDragging) return
|
||||
const $css = document.createElement("style")
|
||||
|
||||
$css.innerHTML = `
|
||||
* {
|
||||
cursor: ew-resize !important;
|
||||
}
|
||||
`
|
||||
|
||||
document.head.append($css)
|
||||
return () => {
|
||||
$css.remove()
|
||||
}
|
||||
}, [isDragging])
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue