mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
fix wrapping on external link buttons
This commit is contained in:
@@ -59,11 +59,11 @@ class AboutDialog extends React.Component<AboutDialogProps> {
|
||||
{i18n.translate(AboutStringId.LicenseButtonLabel)}
|
||||
</Button>
|
||||
<AnchorButton href={changelogUrl} target="blank_">
|
||||
{i18n.translate(AboutStringId.ChangelogButtonLabel)}
|
||||
{i18n.translate(AboutStringId.ChangelogButtonLabel)}
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
<AnchorButton href={pybricksWebsiteUrl} target="blank_">
|
||||
{i18n.translate(AboutStringId.WebsiteButtonLabel)}
|
||||
{i18n.translate(AboutStringId.WebsiteButtonLabel)}
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
</div>
|
||||
|
||||
@@ -193,7 +193,6 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
|
||||
target="blank_"
|
||||
>
|
||||
{i18n.translate(SettingsStringId.HelpProjectsLabel)}
|
||||
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
<AnchorButton
|
||||
@@ -202,7 +201,6 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
|
||||
target="blank_"
|
||||
>
|
||||
{i18n.translate(SettingsStringId.HelpSupportLabel)}
|
||||
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
<AnchorButton
|
||||
@@ -211,7 +209,6 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
|
||||
target="blank_"
|
||||
>
|
||||
{i18n.translate(SettingsStringId.HelpChatLabel)}
|
||||
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
<AnchorButton
|
||||
@@ -220,7 +217,6 @@ class SettingsDrawer extends React.PureComponent<SettingsProps> {
|
||||
target="blank_"
|
||||
>
|
||||
{i18n.translate(SettingsStringId.HelpBugsLabel)}
|
||||
|
||||
<ExternalLinkIcon />
|
||||
</AnchorButton>
|
||||
<AboutDialog
|
||||
|
||||
@@ -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