Skip to content

Commit fc4a129

Browse files
committed
Better background blur in immersive view
1 parent 11fe59b commit fc4a129

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/player/immersive/amll.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ export function Amll({
152152

153153
return (
154154
<div style={{ position: "absolute", inset: 0, overflow: "hidden", background: "#111", fontFamily: FONT }}>
155+
{cover && (
156+
<img src={cover} style={{
157+
position: "absolute", inset: "-30%", width: "160%", height: "160%",
158+
objectFit: "cover", filter: "blur(80px) saturate(1.8) brightness(0.25)",
159+
zIndex: 0,
160+
}} />
161+
)}
155162
<div style={{ position: "absolute", inset: 0, zIndex: 0 }}>
156163
<BackgroundRender
157164
album={cover ?? undefined}
@@ -160,9 +167,10 @@ export function Amll({
160167
fps={30}
161168
flowSpeed={2}
162169
renderScale={0.4}
163-
style={{ width: "100%", height: "100%" }}
170+
style={{ width: "100%", height: "100%", opacity: 0.7 }}
164171
/>
165172
</div>
173+
<div style={{ position: "absolute", inset: 0, zIndex: 0, background: "rgba(0,0,0,0.3)" }} />
166174

167175
<div style={{
168176
position: "relative", zIndex: 1, height: "100%",

0 commit comments

Comments
 (0)