Expander header without nowrap (#2582)

* Expander header without nowrap

* Adjust overflows
This commit is contained in:
Jaco Greeff 2020-04-17 23:01:17 +02:00 committed by GitHub
parent 3c438d39f9
commit 75bceaadf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -48,10 +48,10 @@ function ReferendumVotes ({ change, className, count, index, isWinning, total, v
<td className={`${className} number`}>
<Expander
summary={
<>
<FormatBalance value={total} />
{count ? ` (${formatNumber(count)})` : '' }
</>
<FormatBalance
labelPost={count ? ` (${formatNumber(count)})` : '' }
value={total}
/>
}
summarySub={
change.gtn(0)

View File

@ -103,17 +103,16 @@ export default React.memo(styled(Expander)`
.ui--Expander-summary {
margin: 0;
min-width: 12rem;
min-width: 13.5rem;
overflow: hidden;
.ui--Expander-summary-header > .ui--FormatBalance {
min-width: 12rem;
min-width: 11rem;
}
> div {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
i.icon {