Skip to content

Commit e9be2d1

Browse files
committed
style(ui): close tasks sidebar by default on mobile devices
1 parent f668dd0 commit e9be2d1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/src/components/features/tasks/TasksPageContent.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ export function TasksPageContent() {
6161
const [cursorPosition, setCursorPosition] = useState({ line: 1, column: 1 });
6262
const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
6363
const [isEditorLocked, setIsEditorLocked] = useState(true);
64-
const [isSidebarVisible, setIsSidebarVisible] = useState(false);
64+
const [isSidebarVisible, setIsSidebarVisible] = useState(true);
65+
useEffect(() => {
66+
if (window.innerWidth < 640) {
67+
setIsSidebarVisible(false);
68+
}
69+
}, []);
6570

6671
// Fetch settings (including default backend)
6772
const { data: settingsData } = useQuery({

0 commit comments

Comments
 (0)