fix: @unixzii feature request

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-09-08 12:11:23 +08:00
parent b7653494b7
commit b41a78d5c6
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 17 additions and 9 deletions

View File

@ -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 (

View File

@ -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