@@ -50,14 +50,32 @@ export class AnalysisView extends LitElement {
5050 height: 100%;
5151 width: 100%;
5252 display: flex;
53- flex-direction: column;
54- flex: 1;
5553 gap: 1rem;
5654 }
5755
56+ .analysis-view {
57+ display: flex;
58+ flex-direction: column;
59+ height: 100%;
60+ width: 100%;
61+ }
62+
5863 #analysis-table-container {
59- display: contents;
6064 height: 100%;
65+ width: 100%;
66+ min-height: 0;
67+ min-width: 0;
68+ }
69+
70+ #analysis-table {
71+ display: inline-block;
72+ height: 100%;
73+ width: 100%;
74+ }
75+
76+ .filter-container {
77+ display: flex;
78+ gap: 5px;
6179 }
6280
6381 .dropdown-container {
@@ -114,39 +132,41 @@ export class AnalysisView extends LitElement {
114132 const skeleton = ! this . timelineRoot ? html `< grid-skeleton > </ grid-skeleton > ` : '' ;
115133
116134 return html `
117- < datagrid-filter-bar >
118- < div slot ="filters " class ="dropdown-container ">
119- < label for ="groupby-dropdown "> < strong > Group by</ strong > </ label >
120- < vscode-dropdown id ="groupby-dropdown " @change ="${ this . _groupBy } ">
121- < vscode-option > None</ vscode-option >
122- < vscode-option > Namespace</ vscode-option >
123- < vscode-option > Type</ vscode-option >
124- </ vscode-dropdown >
125- </ div >
126-
127- < div slot ="actions ">
128- < vscode-button
129- appearance ="icon "
130- aria-label ="Export to CSV "
131- title ="Export to CSV "
132- @click =${ this . _exportToCSV }
133- >
134- < span class ="codicon codicon-desktop-download "> </ span >
135- </ vscode-button >
136- < vscode-button
137- appearance ="icon "
138- aria-label ="Copy to clipboard "
139- title ="Copy to clipboard "
140- @click =${ this . _copyToClipboard }
141- >
142- < span class ="codicon codicon-copy "> </ span >
143- </ vscode-button >
135+ < div class ="analysis-view ">
136+ < datagrid-filter-bar >
137+ < div slot ="filters " class ="dropdown-container ">
138+ < label for ="groupby-dropdown "> < strong > Group by</ strong > </ label >
139+ < vscode-dropdown id ="groupby-dropdown " @change ="${ this . _groupBy } ">
140+ < vscode-option > None</ vscode-option >
141+ < vscode-option > Namespace</ vscode-option >
142+ < vscode-option > Type</ vscode-option >
143+ </ vscode-dropdown >
144+ </ div >
145+
146+ < div slot ="actions ">
147+ < vscode-button
148+ appearance ="icon "
149+ aria-label ="Export to CSV "
150+ title ="Export to CSV "
151+ @click =${ this . _exportToCSV }
152+ >
153+ < span class ="codicon codicon-desktop-download "> </ span >
154+ </ vscode-button >
155+ < vscode-button
156+ appearance ="icon "
157+ aria-label ="Copy to clipboard "
158+ title ="Copy to clipboard "
159+ @click =${ this . _copyToClipboard }
160+ >
161+ < span class ="codicon codicon-copy "> </ span >
162+ </ vscode-button >
163+ </ div >
164+ </ datagrid-filter-bar >
165+
166+ < div id ="analysis-table-container ">
167+ ${ skeleton }
168+ < div id ="analysis-table "> </ div >
144169 </ div >
145- </ datagrid-filter-bar >
146-
147- < div id ="analysis-table-container ">
148- ${ skeleton }
149- < div id ="analysis-table "> </ div >
150170 </ div >
151171 ` ;
152172 }
@@ -257,6 +277,7 @@ export class AnalysisView extends LitElement {
257277
258278 return new Blob ( [ fileContents ] , { type : mimeType } ) ;
259279 } ,
280+ dataTree : true , // temporary: fixes a disappearing table issue when scroll is dragged (needs fix in Tabulator)
260281 downloadRowRange : 'all' ,
261282 downloadConfig : {
262283 columnHeaders : true ,
@@ -269,6 +290,7 @@ export class AnalysisView extends LitElement {
269290 keybindings : { copyToClipboard : [ 'ctrl + 67' , 'meta + 67' ] } ,
270291 clipboardCopyRowRange : 'all' ,
271292 height : '100%' ,
293+ maxHeight : '100%' ,
272294 groupCalcs : true ,
273295 groupClosedShowCalcs : true ,
274296 groupStartOpen : false ,
@@ -325,6 +347,7 @@ export class AnalysisView extends LitElement {
325347 multiselect : true ,
326348 } ,
327349 headerFilterLiveFilter : false ,
350+ variableHeight : true ,
328351 } ,
329352 {
330353 title : 'Type' ,
0 commit comments