diff --git a/.vscode/settings.json b/.vscode/settings.json index cc40c2e..b9ffe03 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,6 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "workbench.colorTheme": "Default Light+", "javascript.format.semicolons": "insert", - "window.zoomLevel": 1, + "window.zoomLevel": 0, "trunk.trunkGrayOutNonBlockingIssues": false } diff --git a/packages/desktop/src/pages/terminal/index.tsx b/packages/desktop/src/pages/terminal/index.tsx index 9203c02..68f58b6 100644 --- a/packages/desktop/src/pages/terminal/index.tsx +++ b/packages/desktop/src/pages/terminal/index.tsx @@ -33,6 +33,11 @@ export default function NirvanaTerminal() { // console.log(linesMap); }, [linesMap]); + // ! remounting when toggle tuning and untoggle tuning a line + // because it changes the list that it's in...solution 1: put everything in one list and use one sort to handle toggle tuned items to be clean + // the change in the object or the property which is specifically currentUserMember of the masterLineData sent in to line row + // causes a re-render but not a unmount and remount + const allLines: MasterLineData[] = useMemo(() => { const masterLines: MasterLineData[] = Object.values(linesMap);