Skip to content

Commit 9b28525

Browse files
authored
move Recommendations and Permissions cards; set to 3 columns (#13687)
1 parent 1e8728a commit 9b28525

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

src/amo/components/AddonRecommendations/styles.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// overriding default Search Results styles
99
@include respond-to(large) {
1010
grid-auto-flow: initial;
11-
grid-template-columns: repeat(2, 50%);
11+
grid-template-columns: repeat(2, 1fr);
12+
}
13+
14+
@include respond-to(extraLarge) {
15+
grid-auto-flow: initial;
16+
grid-template-columns: repeat(3, 1fr);
1217
}
1318

1419
.SearchResult {

src/amo/components/AddonsByAuthorsCard/styles.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
.AddonsByAuthorsCard:not(.AddonsByAuthorsCard--theme) {
6363
.Card-contents .AddonsCard-list {
6464
@include respond-to(large) {
65-
grid-template-columns: repeat(1, 1fr);
65+
grid-template-columns: repeat(2, 1fr);
6666
}
6767

68-
@include respond-to(extraExtraLarge) {
69-
grid-template-columns: repeat(2, 1fr);
68+
@include respond-to(extraLarge) {
69+
grid-template-columns: repeat(3, 1fr);
7070
}
7171
}
7272
}

src/amo/pages/Addon/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class AddonBase extends React.Component {
277277
);
278278
}
279279

280-
renderShowMoreCard() {
280+
renderAboutThisCard() {
281281
const { addon, i18n } = this.props;
282282

283283
let showAbout;
@@ -547,21 +547,21 @@ export class AddonBase extends React.Component {
547547
</Card>
548548
) : null}
549549

550-
{this.renderShowMoreCard()}
550+
{this.renderAboutThisCard()}
551551

552552
{this.renderRatingsCard()}
553-
554-
{this.renderRecommendations()}
555553
</div>
556554

557-
<ContributeCard addon={addon} />
558-
559555
<PermissionsCard version={currentVersion} />
560556

561557
<AddonMoreInfo addon={addon} />
562558

559+
<ContributeCard addon={addon} />
560+
563561
{this.renderVersionReleaseNotes()}
564562

563+
{this.renderRecommendations()}
564+
565565
{this.renderAddonsByAuthorsCard({ isForTheme: false })}
566566
</div>
567567
</div>

0 commit comments

Comments
 (0)