@@ -116,7 +116,9 @@ export class MarkersFilterAction extends Action {
116116 }
117117
118118 layout ( width : number ) : void {
119- if ( width < 400 ) {
119+ if ( width > 600 ) {
120+ this . class = 'markers-panel-action-filter grow' ;
121+ } else if ( width < 400 ) {
120122 this . class = 'markers-panel-action-filter small' ;
121123 } else {
122124 this . class = 'markers-panel-action-filter' ;
@@ -133,6 +135,7 @@ export interface IMarkerFilterController {
133135export class MarkersFilterActionViewItem extends BaseActionViewItem {
134136
135137 private delayedFilterUpdate : Delayer < void > ;
138+ private container : HTMLElement | null = null ;
136139 private filterInputBox : HistoryInputBox | null = null ;
137140 private filterBadge : HTMLElement | null = null ;
138141 private focusContextKey : IContextKey < boolean > ;
@@ -154,9 +157,10 @@ export class MarkersFilterActionViewItem extends BaseActionViewItem {
154157 }
155158
156159 render ( container : HTMLElement ) : void {
157- DOM . addClass ( container , 'markers-panel-action-filter-container' ) ;
160+ this . container = container ;
161+ DOM . addClass ( this . container , 'markers-panel-action-filter-container' ) ;
158162
159- this . element = DOM . append ( container , DOM . $ ( '' ) ) ;
163+ this . element = DOM . append ( this . container , DOM . $ ( '' ) ) ;
160164 this . element . className = this . action . class || '' ;
161165 this . createInput ( this . element ) ;
162166 this . createControls ( this . element ) ;
@@ -303,8 +307,9 @@ export class MarkersFilterActionViewItem extends BaseActionViewItem {
303307 }
304308
305309 protected updateClass ( ) : void {
306- if ( this . element ) {
310+ if ( this . element && this . container ) {
307311 this . element . className = this . action . class || '' ;
312+ DOM . toggleClass ( this . container , 'grow' , DOM . hasClass ( this . element , 'grow' ) ) ;
308313 this . adjustInputBox ( ) ;
309314 }
310315 }
0 commit comments