fix wrapping on external link buttons

This commit is contained in:
David Lechner
2021-06-08 14:52:44 -05:00
parent 205937fdc3
commit 6c692a7e95
4 changed files with 12 additions and 9 deletions
+6 -3
View File
@@ -11,9 +11,12 @@ import './external-link.scss';
class ExternalLinkIcon extends React.Component {
render(): JSX.Element {
return (
<sup className="pb-external-link">
<Icon icon="share" iconSize={12} />
</sup>
<span className="pb-external-link">
{' '}
<sup>
<Icon icon="share" iconSize={12} />
</sup>
</span>
);
}
}
+4
View File
@@ -3,6 +3,10 @@
@import '../variables.scss';
span.pb-external-link {
white-space: nowrap;
}
// override some button magic in case this is used in a button
.#{$ns}-button .pb-external-link .#{$ns}-icon:first-child:last-child {
margin: 0;