We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ffc55 commit 6d34efeCopy full SHA for 6d34efe
src/renderer/components/Browser.tsx
@@ -21,6 +21,12 @@ type BrowserSelection = {
21
const ROW_HEIGHT = 25.5; // Fixed row height
22
const BROWSER_WIDTH = 800; // Fixed browser width
23
24
+/**
25
+ * @TODO Refactor to use the useWindowDimensions hook. The tricky part is
26
+ * that this component relies on width and height not being <undefined />
27
+ * on initial render, which isn't always the case due to the way the original
28
+ * window dimensions hooks works in the Main component.
29
+ */
30
export default function Browser({ onClose }: BrowserProps) {
31
const { width, height } = useWindowDimensions();
32
const setFilteredLibrary = usePlayerStore(
0 commit comments