Skip to content

Commit 11222d7

Browse files
author
Pascal Fong Kye
committed
fix: remove extra div and center label
1 parent c6f3b19 commit 11222d7

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

src/vs/workbench/contrib/debug/browser/callStackView.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ export class CallStackView extends ViewPane {
449449
interface IThreadTemplateData {
450450
thread: HTMLElement;
451451
name: HTMLElement;
452-
state: HTMLElement;
453452
stateLabel: HTMLSpanElement;
454453
label: HighlightedLabel;
455454
actionBar: ActionBar;
@@ -458,7 +457,6 @@ interface IThreadTemplateData {
458457
interface ISessionTemplateData {
459458
session: HTMLElement;
460459
name: HTMLElement;
461-
state: HTMLElement;
462460
stateLabel: HTMLSpanElement;
463461
label: HighlightedLabel;
464462
actionBar: ActionBar;
@@ -500,8 +498,7 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
500498
const session = dom.append(container, $('.session'));
501499
dom.append(session, $('.codicon.codicon-bug'));
502500
const name = dom.append(session, $('.name'));
503-
const state = dom.append(session, $('.state'));
504-
const stateLabel = dom.append(state, $('span.label.monaco-count-badge.long'));
501+
const stateLabel = dom.append(session, $('span.label.monaco-count-badge.long'));
505502
const label = new HighlightedLabel(name, false);
506503
const actionBar = new ActionBar(session, {
507504
actionViewItemProvider: action => {
@@ -515,7 +512,7 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
515512
}
516513
});
517514

518-
return { session, name, state, stateLabel, label, actionBar, elementDisposable: [] };
515+
return { session, name, stateLabel, label, actionBar, elementDisposable: [] };
519516
}
520517

521518
renderElement(element: ITreeNode<IDebugSession, FuzzyScore>, _: number, data: ISessionTemplateData): void {
@@ -581,12 +578,11 @@ class ThreadsRenderer implements ICompressibleTreeRenderer<IThread, FuzzyScore,
581578
renderTemplate(container: HTMLElement): IThreadTemplateData {
582579
const thread = dom.append(container, $('.thread'));
583580
const name = dom.append(thread, $('.name'));
584-
const state = dom.append(thread, $('.state'));
585-
const stateLabel = dom.append(state, $('span.label'));
581+
const stateLabel = dom.append(thread, $('span.label'));
586582
const label = new HighlightedLabel(name, false);
587583
const actionBar = new ActionBar(thread);
588584

589-
return { thread, name, state, stateLabel, label, actionBar };
585+
return { thread, name, stateLabel, label, actionBar };
590586
}
591587

592588
renderElement(element: ITreeNode<IThread, FuzzyScore>, index: number, data: IThreadTemplateData): void {

src/vs/workbench/contrib/debug/browser/media/debugViewlet.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
}
7979

8080
/* Make icons and text the same color as the list foreground on focus selection */
81-
.debug-pane .monaco-list:focus .monaco-list-row.selected .state > .label,
82-
.debug-pane .monaco-list:focus .monaco-list-row.selected.focused .state > .label,
81+
.debug-pane .monaco-list:focus .monaco-list-row.selected .label,
82+
.debug-pane .monaco-list:focus .monaco-list-row.selected.focused .label,
8383
.debug-pane .monaco-list:focus .monaco-list-row.selected .codicon,
8484
.debug-pane .monaco-list:focus .monaco-list-row.selected.focused .codicon {
8585
color: inherit !important;
@@ -120,15 +120,16 @@
120120
text-overflow: ellipsis;
121121
}
122122

123-
.debug-pane .debug-call-stack .thread > .state,
124-
.debug-pane .debug-call-stack .session > .state {
123+
.debug-pane .debug-call-stack .thread > .label,
124+
.debug-pane .debug-call-stack .session > .label {
125125
overflow: hidden;
126126
text-overflow: ellipsis;
127-
padding: 0 10px;
127+
margin: 0 10px;
128128
text-transform: uppercase;
129+
align-self: center;
129130
}
130131

131-
.debug-pane .debug-call-stack .monaco-list-row:hover .state {
132+
.debug-pane .debug-call-stack .monaco-list-row:hover .label {
132133
display: none;
133134
}
134135

@@ -161,10 +162,12 @@
161162
background-repeat: no-repeat;
162163
}
163164

164-
.debug-pane .debug-call-stack .thread > .state > .label,
165-
.debug-pane .debug-call-stack .session > .state > .label {
165+
.debug-pane .debug-call-stack .session > .label,
166+
.debug-pane .debug-call-stack .session > .label {
166167
font-size: 0.8em;
167168
min-height: auto;
169+
background-color: rgba(136, 136, 136, 0.27);
170+
color: #cccccc;
168171
}
169172

170173
.debug-pane .debug-call-stack .stack-frame {

0 commit comments

Comments
 (0)