Skip to content

Commit e05caa5

Browse files
IM.codesclaude
andcommitted
fix: cron panel pins to sidebar by default, list fills 90% width
- Clock icon in SubSessionBar now pins cron directly to sidebar instead of floating - CronManager container uses 90% width with full height and scroll overflow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e72c7be commit e05caa5

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

web/src/app.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,13 @@ export function App() {
19261926
onHistory={registerHistoryApplyer}
19271927
serverId={selectedServerId}
19281928
onViewRepo={() => setShowRepoPage(true)}
1929-
onViewCron={() => setShowCronManager(true)}
1929+
onViewCron={() => {
1930+
const cronProject = sessions.find(s => s.name === activeSession)?.project;
1931+
if (cronProject) {
1932+
// Pin directly to sidebar instead of floating window
1933+
pinPanel('cronmanager', { sessionName: activeSession, projectName: cronProject, serverId: selectedServerId }, () => {});
1934+
}
1935+
}}
19301936
subUsages={subUsages}
19311937
focusedSubId={focusedSubId}
19321938
quickData={quickData}

web/src/pages/CronManager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function CronManager({ serverId, projectName, sessions, subSessions = [],
203203
};
204204

205205
return (
206-
<div style={{ maxWidth: '700px', margin: '0 auto', padding: '12px 20px' }}>
206+
<div style={{ width: '90%', maxWidth: '700px', margin: '0 auto', padding: '12px 0', height: '100%', overflow: 'auto' }}>
207207
{/* Toolbar: show-all toggle + add button */}
208208
<div style={{ display: 'flex', alignItems: 'center', gap: '8px', marginBottom: '10px' }}>
209209
<label style={{ color: '#94a3b8', fontSize: '12px', cursor: 'pointer', display: 'flex', alignItems: 'center', gap: '4px' }}>

0 commit comments

Comments
 (0)