Commit 2c034b3 1 parent c07157f commit 2c034b3 Copy full SHA for 2c034b3
File tree 2 files changed +2
-6
lines changed
src/components/dagshub/data-engine
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,9 @@ import 'ag-grid-community/styles/ag-theme-quartz.css';
6
6
export function CSVViewer ( {
7
7
headers,
8
8
values,
9
- columnWidth = 150
10
9
} : {
11
10
headers : string [ ] ;
12
11
values : string [ ] [ ] ;
13
- columnWidth ?: number ;
14
12
} ) {
15
13
// Convert the data into the format expected by AgGridReact
16
14
const rowData = values . map ( ( rowValues ) => {
@@ -35,7 +33,6 @@ export function CSVViewer({
35
33
colId : header ,
36
34
field : header ,
37
35
filter : 'agTextColumnFilter' ,
38
- width : columnWidth ,
39
36
floatingFilter : true ,
40
37
headerTooltip : header
41
38
} ) )
@@ -45,8 +42,7 @@ export function CSVViewer({
45
42
< div
46
43
className = { 'ag-theme-quartz' }
47
44
style = { {
48
- width : `${ headers . length * columnWidth + 67 } px` ,
49
- maxWidth : '100%' ,
45
+ width : '100%' ,
50
46
height : '100%' ,
51
47
fontFamily : 'Inter!important'
52
48
} }
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export const SingleFileViewFileRenderer = ({ itemData }: VisualizerProps) => {
142
142
) ;
143
143
}
144
144
if ( itemType === 'csv' ) {
145
- return < CSVViewer headers = { csvHeaders } values = { csvValues } columnWidth = { 160 } /> ;
145
+ return < CSVViewer headers = { csvHeaders } values = { csvValues } /> ;
146
146
}
147
147
}
148
148
return < ItemFallback height = { '100%' } width = { '100%' } disableHoverMode /> ;
You can’t perform that action at this time.
0 commit comments