mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
fix wrapping on external link buttons
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user