Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Feb 24, 2017
1 parent 7ac7b57 commit 8e05dbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
24 changes: 14 additions & 10 deletions src/amo/components/AddonMoreInfo.js
Expand Up @@ -30,16 +30,20 @@ export class AddonMoreInfoBase extends React.Component {
) : null}
{homepage || supportUrl ? (
<dd className="AddonMoreInfo-contents-links">
{homepage ? (
<a href={homepage} ref={(ref) => { this.homepageLink = ref; }}>
{i18n.gettext('Homepage')}
</a>
) : null}
{supportUrl ? (
<a href={supportUrl} ref={(ref) => { this.supportLink = ref; }}>
{i18n.gettext('Support Site')}
</a>
) : null}
<ul className="AddonMoreInfo-contents-links-list">
{homepage ? (
<li><a href={homepage}
ref={(ref) => { this.homepageLink = ref; }}>
{i18n.gettext('Homepage')}
</a></li>
) : null}
{supportUrl ? (
<li><a href={supportUrl}
ref={(ref) => { this.supportLink = ref; }}>
{i18n.gettext('Support Site')}
</a></li>
) : null}
</ul>
</dd>
) : null}
<dt>{i18n.gettext('Version')}</dt>
Expand Down
9 changes: 7 additions & 2 deletions src/amo/components/AddonMoreInfo.scss
Expand Up @@ -24,6 +24,11 @@
}
}

.AddonMoreInfo-contents-links a {
display: block;
.AddonMoreInfo-contents-links-list {
margin: 0;
padding: 0 0 0 10px;

[dir=rtl] & {
padding: 0 10px 0 0;
}
}

0 comments on commit 8e05dbe

Please sign in to comment.