All Table word breaks on 100% columns (#5165)

This commit is contained in:
Jaco 2021-04-30 07:57:46 +03:00 committed by GitHub
parent e395d67344
commit 1392f9cbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 6 deletions

View File

@ -118,7 +118,7 @@ function Tip ({ bestNumber, className = '', defaultId, hash, isMember, members,
)}
</td>
<TipReason hash={reason} />
<td className='expand'>
<td className='expand media--1100'>
{tips.length !== 0 && (
<Expander summary={
<>

View File

@ -64,7 +64,7 @@ function Tips ({ className = '', defaultId, hashes, isMember, members, onSelectT
[t('tips'), 'start'],
[t('finder'), 'address media--1400'],
[t('reason'), 'start'],
[],
[undefined, 'media--1100'],
[],
[undefined, 'badge media--1700'],
[],

View File

@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
import styled from 'styled-components';
import { isString } from '@polkadot/util';
@ -36,6 +35,4 @@ function Body ({ children, className = '', empty, emptySpinner, noBodyTag }: Pro
);
}
export default React.memo(styled(Body)`
`);
export default React.memo(Body);

View File

@ -92,6 +92,7 @@ export default React.memo(styled(Table)`
}
&.all {
word-break: break-word;
width: 100%;
summary {