Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Render playlist modal into body using portal

+4 -2
+4 -2
webui/rockbox/src/Components/Playlists/PlaylistModal.tsx
··· 1 1 import { FC, useState } from "react"; 2 + import { createPortal } from "react-dom"; 2 3 import { useTheme } from "@emotion/react"; 3 4 4 5 type PlaylistModalProps = { ··· 28 29 setSaving(false); 29 30 } 30 31 31 - return ( 32 + return createPortal( 32 33 <div 33 34 style={{ 34 35 position: "fixed", ··· 149 150 </button> 150 151 </div> 151 152 </div> 152 - </div> 153 + </div>, 154 + document.body 153 155 ); 154 156 }; 155 157