fix overflow issue in extensions table (#7767)
This commit is contained in:
parent
b67dccfc1b
commit
2caf3eded9
@ -4,6 +4,7 @@
|
||||
import type { ChainInfo } from '../types';
|
||||
|
||||
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { emptyLogos, extensionLogos } from '@polkadot/apps-config';
|
||||
import { Button, Dropdown, Spinner, Table } from '@polkadot/react-components';
|
||||
@ -53,7 +54,6 @@ function Extensions ({ chainInfo, className }: Props): React.ReactElement<Props>
|
||||
empty={t<string>('No Upgradable extensions')}
|
||||
header={headerRef.current}
|
||||
>
|
||||
|
||||
{extensions
|
||||
? options.length !== 0 && (
|
||||
<>
|
||||
@ -83,9 +83,12 @@ function Extensions ({ chainInfo, className }: Props): React.ReactElement<Props>
|
||||
)
|
||||
: <Spinner />
|
||||
}
|
||||
|
||||
</Table>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(Extensions);
|
||||
export default React.memo(styled(Extensions)`
|
||||
table {
|
||||
overflow: visible;
|
||||
}
|
||||
`);
|
||||
|
||||
@ -16,9 +16,7 @@ export default function Metadata (): React.ReactElement {
|
||||
return (
|
||||
<>
|
||||
{!isDevelopment && (
|
||||
<>
|
||||
<Extensions chainInfo={chainInfo} />
|
||||
</>
|
||||
<Extensions chainInfo={chainInfo} />
|
||||
)}
|
||||
<NetworkSpecs chainInfo={chainInfo} />
|
||||
</>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user