Skip to content

Commit b97ef56

Browse files
Fix other columns width in shortcircuit results ('Limit type', 'Isc - Isc min (kA)', 'Isc - Isc max (kA)') (#3310)
Signed-off-by: Franck LECUYER <[email protected]>
1 parent 9951b26 commit b97ef56

File tree

1 file changed

+39
-30
lines changed

1 file changed

+39
-30
lines changed

src/components/results/shortcircuit/shortcircuit-analysis-result-table.tsx

Lines changed: 39 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,17 @@ const ShortCircuitAnalysisResultTable: FunctionComponent<ShortCircuitAnalysisRes
245245
...onlyIfIsOneBus({ sortParams, ...autocompleteFilterParams('side') }),
246246
},
247247
}),
248-
makeAgGridCustomHeaderColumn({
249-
headerName: intl.formatMessage({ id: 'LimitType' }),
250-
colId: 'limitType',
251-
field: 'limitType',
252-
context: {
253-
...onlyIfIsAllBuses({ sortParams, ...autocompleteFilterParams('limitType') }),
254-
},
255-
}),
248+
{
249+
...makeAgGridCustomHeaderColumn({
250+
headerName: intl.formatMessage({ id: 'LimitType' }),
251+
colId: 'limitType',
252+
field: 'limitType',
253+
context: {
254+
...onlyIfIsAllBuses({ sortParams, ...autocompleteFilterParams('limitType') }),
255+
},
256+
}),
257+
minWidth: 150,
258+
},
256259
makeAgGridCustomHeaderColumn({
257260
headerName: intl.formatMessage({ id: 'IscMinKA' }),
258261
colId: 'limitMin',
@@ -285,28 +288,34 @@ const ShortCircuitAnalysisResultTable: FunctionComponent<ShortCircuitAnalysisRes
285288
...onlyIfIsAllBuses({ sortParams, ...inputFilterParams(numericFilterParams) }),
286289
},
287290
}),
288-
makeAgGridCustomHeaderColumn({
289-
headerName: intl.formatMessage({ id: 'deltaCurrentIpMin' }),
290-
colId: 'deltaCurrentIpMin',
291-
field: 'deltaCurrentIpMin',
292-
context: {
293-
numeric: true,
294-
fractionDigits: 2,
295-
...onlyIfIsAllBuses({ sortParams, ...inputFilterParams(numericFilterParams) }),
296-
},
297-
valueGetter: (params: ValueGetterParams) => unitToKiloUnit(params.data?.deltaCurrentIpMin),
298-
}),
299-
makeAgGridCustomHeaderColumn({
300-
headerName: intl.formatMessage({ id: 'deltaCurrentIpMax' }),
301-
colId: 'deltaCurrentIpMax',
302-
field: 'deltaCurrentIpMax',
303-
context: {
304-
numeric: true,
305-
fractionDigits: 2,
306-
...onlyIfIsAllBuses({ sortParams, ...inputFilterParams(numericFilterParams) }),
307-
},
308-
valueGetter: (params: ValueGetterParams) => unitToKiloUnit(params.data?.deltaCurrentIpMax),
309-
}),
291+
{
292+
...makeAgGridCustomHeaderColumn({
293+
headerName: intl.formatMessage({ id: 'deltaCurrentIpMin' }),
294+
colId: 'deltaCurrentIpMin',
295+
field: 'deltaCurrentIpMin',
296+
context: {
297+
numeric: true,
298+
fractionDigits: 2,
299+
...onlyIfIsAllBuses({ sortParams, ...inputFilterParams(numericFilterParams) }),
300+
},
301+
valueGetter: (params: ValueGetterParams) => unitToKiloUnit(params.data?.deltaCurrentIpMin),
302+
}),
303+
minWidth: 180,
304+
},
305+
{
306+
...makeAgGridCustomHeaderColumn({
307+
headerName: intl.formatMessage({ id: 'deltaCurrentIpMax' }),
308+
colId: 'deltaCurrentIpMax',
309+
field: 'deltaCurrentIpMax',
310+
context: {
311+
numeric: true,
312+
fractionDigits: 2,
313+
...onlyIfIsAllBuses({ sortParams, ...inputFilterParams(numericFilterParams) }),
314+
},
315+
valueGetter: (params: ValueGetterParams) => unitToKiloUnit(params.data?.deltaCurrentIpMax),
316+
}),
317+
minWidth: 180,
318+
},
310319
{
311320
field: 'linkedElementId',
312321
hide: true,

0 commit comments

Comments
 (0)