Skip to content

Commit 56df749

Browse files
lemurra_microsoftlemurra_microsoft
authored andcommitted
Enhance task area header for better clarity and update input area margin for improved layout
1 parent 6631292 commit 56df749

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

webviews/dashboardView/app.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function Dashboard() {
202202
<div className={`dashboard-content${isGlobal ? ' global-dashboard' : ''}`}>
203203
{/* Input Area */}
204204
<div className="input-area">
205-
<h2 className="area-header">Start new task</h2>
205+
<h2 className="area-header new-task">Start new task</h2>
206206
<ChatInput data={dashboardState} isGlobal={!!isGlobal} />
207207

208208
</div>
@@ -265,19 +265,20 @@ function Dashboard() {
265265
{/* Tasks Area */}
266266
<div className="tasks-area">
267267
<div className="area-header-container">
268-
<h2 className="area-header">{isGlobal ? 'Continue working on...' : 'Active tasks'}</h2>
268+
<h2 className="area-header">
269+
{isGlobal ? 'Continue working on...' :
270+
dashboardState?.state === 'ready' ?
271+
`${activeSessions.length || 0} active task${activeSessions.length !== 1 ? 's' : ''}` :
272+
'Active tasks'
273+
}
274+
</h2>
269275
{isGlobal && (
270276
<FilterButton
271277
filterState={globalFilter}
272278
onFilterChange={setGlobalFilter}
273279
/>
274280
)}
275281
</div>
276-
{dashboardState?.state === 'ready' && (
277-
<div className="section-count">
278-
{activeSessions.length || 0} task{activeSessions.length !== 1 ? 's' : ''}
279-
</div>
280-
)}
281282
<div className="area-content">
282283
{dashboardState?.state === 'loading' ? (
283284
<LoadingState message="Loading tasks..." />

webviews/dashboardView/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ body {
268268
overflow-y: auto;
269269
border: 1px solid var(--vscode-panel-border);
270270
border-radius: 4px;
271-
margin-top: 8px;
271+
margin-top: 4px;
272272
padding: 0;
273273
}
274274

0 commit comments

Comments
 (0)