chore: remove min widths
This commit is contained in:
@@ -41,7 +41,6 @@ const BreakdownTable = forwardRef<AgGridReact, BreakdownTableProps>(
|
||||
if (!value) return 'None';
|
||||
return value;
|
||||
},
|
||||
minWidth: 200,
|
||||
},
|
||||
{
|
||||
headerName: t('Account type'),
|
||||
|
||||
@@ -4,8 +4,8 @@ export const COL_DEFS = {
|
||||
sortable: false,
|
||||
resizable: false,
|
||||
filter: false,
|
||||
minWidth: 45,
|
||||
maxWidth: 45,
|
||||
minWidth: 40,
|
||||
maxWidth: 40,
|
||||
type: 'rightAligned',
|
||||
pinned: 'right' as const,
|
||||
},
|
||||
|
||||
@@ -124,7 +124,6 @@ export const LiquidityTable = ({
|
||||
headerTooltip: t(
|
||||
'The valuation of the market at the time the liquidity commitment was made. Commitments made at a lower valuation earlier in the lifetime of the market would be expected to have a higher equity-like share if the market has grown. If a commitment is amended, value will reflect the average of the market valuations across the lifetime of the commitment.'
|
||||
),
|
||||
minWidth: 160,
|
||||
valueFormatter: assetDecimalsQuantumFormatter,
|
||||
tooltipValueGetter: assetDecimalsFormatter,
|
||||
},
|
||||
@@ -187,7 +186,6 @@ export const LiquidityTable = ({
|
||||
getRowId={({ data }: { data: LiquidityProvisionData }) => data.id || ''}
|
||||
tooltipShowDelay={500}
|
||||
defaultColDef={{
|
||||
minWidth: 100,
|
||||
tooltipComponent: TooltipCellComponent,
|
||||
sortable: true,
|
||||
}}
|
||||
|
||||
@@ -40,7 +40,6 @@ export const useColumnDefs = ({ onMarketClick }: Props) => {
|
||||
{
|
||||
headerName: t('Trading mode'),
|
||||
field: 'tradingMode',
|
||||
minWidth: 170,
|
||||
valueFormatter: ({
|
||||
data,
|
||||
}: VegaValueFormatterParams<MarketMaybeWithData, 'data'>) => {
|
||||
|
||||
@@ -46,7 +46,6 @@ export const StopOrdersTable = memo<
|
||||
field: 'market.tradableInstrument.instrument.code',
|
||||
cellRenderer: 'MarketNameCell',
|
||||
cellRendererParams: { idPath: 'market.id', onMarketClick },
|
||||
minWidth: 150,
|
||||
},
|
||||
{
|
||||
headerName: t('Trigger'),
|
||||
@@ -58,7 +57,6 @@ export const StopOrdersTable = memo<
|
||||
data,
|
||||
}: VegaValueFormatterParams<StopOrder, 'trigger'>): string =>
|
||||
data ? formatTrigger(data, data.market.decimalPlaces) : '',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'expiresAt',
|
||||
@@ -82,7 +80,6 @@ export const StopOrdersTable = memo<
|
||||
}
|
||||
return '';
|
||||
},
|
||||
minWidth: 150,
|
||||
},
|
||||
{
|
||||
headerName: t('Size'),
|
||||
@@ -129,7 +126,6 @@ export const StopOrdersTable = memo<
|
||||
)
|
||||
);
|
||||
},
|
||||
minWidth: 80,
|
||||
},
|
||||
{
|
||||
field: 'submission.type',
|
||||
@@ -141,7 +137,6 @@ export const StopOrdersTable = memo<
|
||||
value,
|
||||
}: VegaICellRendererParams<StopOrder, 'submission.type'>) =>
|
||||
value ? Schema.OrderTypeMapping[value] : '',
|
||||
minWidth: 80,
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
@@ -163,7 +158,6 @@ export const StopOrdersTable = memo<
|
||||
}) => (
|
||||
<span data-testid={`order-status-${data?.id}`}>{valueFormatted}</span>
|
||||
),
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'submission.price',
|
||||
@@ -185,7 +179,6 @@ export const StopOrdersTable = memo<
|
||||
}
|
||||
return addDecimalsFormatNumber(value, data.market.decimalPlaces);
|
||||
},
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'submission.timeInForce',
|
||||
@@ -198,7 +191,6 @@ export const StopOrdersTable = memo<
|
||||
}: VegaValueFormatterParams<StopOrder, 'submission.timeInForce'>) => {
|
||||
return value ? Schema.OrderTimeInForceCode[value] : '';
|
||||
},
|
||||
minWidth: 150,
|
||||
},
|
||||
{
|
||||
field: 'updatedAt',
|
||||
@@ -218,7 +210,6 @@ export const StopOrdersTable = memo<
|
||||
</span>
|
||||
);
|
||||
},
|
||||
minWidth: 150,
|
||||
},
|
||||
{
|
||||
colId: 'actions',
|
||||
|
||||
@@ -7,10 +7,7 @@ import {
|
||||
|
||||
export const ActionsDropdownTrigger = () => {
|
||||
return (
|
||||
<TradingDropdownTrigger
|
||||
className='hover:bg-vega-light-200 dark:hover:bg-vega-dark-200 [&[aria-expanded="true"]]:bg-vega-light-200 dark:[&[aria-expanded="true"]]:bg-vega-dark-200 p-0.5 rounded-full'
|
||||
data-testid="dropdown-menu"
|
||||
>
|
||||
<TradingDropdownTrigger data-testid="dropdown-menu">
|
||||
<button type="button">
|
||||
<VegaIcon name={VegaIconNames.KEBAB} />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user