Skip to content

Commit 3c7336e

Browse files
committed
Auto merge of #5170 - Turbo87:header-icons, r=pichfl
Remove icons from page headers These icons are not particularly pretty and don't really serve a purpose. Let's remove them to make room for something better and more consistent :) ### Before <img width="1043" alt="Bildschirmfoto 2022-09-01 um 10 19 43" src="https://user-images.githubusercontent.com/141300/187867218-6bf071e8-168b-461f-bce2-e1c5a7e0b861.png"> ### After <img width="1083" alt="Bildschirmfoto 2022-09-01 um 10 19 54" src="https://user-images.githubusercontent.com/141300/187867226-6f13ecea-d84a-4077-bac7-b5a898bd1135.png">
2 parents d4d6372 + f60654c commit 3c7336e

20 files changed

+8
-61
lines changed

app/components/crate-header.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<PageHeader local-class="header" data-test-heading>
22
<div local-class="header-row">
33
<div local-class="heading">
4-
{{svg-jar "crate" local-class="crate-icon"}}
54
<h1 data-test-crate-name>{{@crate.name}}</h1>
65
{{#if @version}}
76
<h2 data-test-crate-version>{{@version.num}}</h2>

app/components/crate-header.module.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@
2727
}
2828
}
2929

30-
.crate-icon {
31-
flex-shrink: 0;
32-
margin-right: 10px;
33-
width: 32px;
34-
height: 32px;
35-
}
36-
3730
.description {
3831
margin-top: 15px;
3932
line-height: 1.35;

app/components/page-header.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{{yield}}
44
{{else}}
55
<h1 local-class="heading">
6-
{{svg-jar (or @icon "crate") local-class="icon"}}
76
{{@title}}
87
{{#if @suffix}}
98
<small local-class="suffix">{{@suffix}}</small>

app/components/page-header.module.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
margin: 0;
1212
}
1313

14-
.icon {
15-
flex-shrink: 0;
16-
margin-right: 10px;
17-
width: 32px;
18-
height: 32px;
19-
}
20-
2114
.suffix {
2215
color: var(--main-color-light);
2316
padding-left: 10px;

app/templates/category/index.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{page-title this.category.category ' - Categories'}}
22

33
<PageHeader local-class="header">
4-
<LinkTo @route="categories" aria-label="Categories">{{svg-jar "crate"}}</LinkTo>
54
<h1>
65
{{#each this.category.parent_categories as |parent|}}<LinkTo @route="category" @model={{parent.slug}}>{{parent.category}}</LinkTo>::{{/each}}
76
{{~ this.category.category }}

app/templates/crate/docs.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<div id="crates-heading">
2-
{{svg-jar "circle-with-i"}}
32
<h1>Documentation for <em>{{this.model.name}}</em></h1>
43
</div>
54

app/templates/dashboard.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{page-title 'Dashboard'}}
22

33
<PageHeader local-class="header">
4-
{{svg-jar "dashboard" local-class="header-icon"}}
54
<h1>My Dashboard</h1>
65
<div local-class="stats">
76
<div local-class='downloads'>

app/templates/data-access.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<PageHeader @title="Accessing the Crates.io Data" @icon="circle-with-i"/>
1+
<PageHeader @title="Accessing the Crates.io Data" />
22

33
<p>
44
There are several ways of accessing the Crates.io data. You should try the

app/templates/install.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<PageHeader @title="Install Cargo" @icon="download"/>
1+
<PageHeader @title="Install Cargo" />
22

33
<p>
44
Redirecting you to <code>https://doc.rust-lang.org/cargo/getting-started/installation.html</code>&#8230;

app/templates/me/pending-invites.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{page-title 'Pending Invites'}}
22

3-
<PageHeader @title="Pending Owner Invites" @icon="gear"/>
3+
<PageHeader @title="Pending Owner Invites" />
44

55
<div local-class="list">
66
{{#each this.model as |invite|}}

app/templates/policies.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<PageHeader @title="Crates.io Package Policies" @icon="circle-with-i"/>
1+
<PageHeader @title="Crates.io Package Policies" />
22

33
<p>
44
In general, these policies are guidelines. Problems are often contextual, and

app/templates/search.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PageHeader
44
@title="Search Results"
55
@suffix={{if this.q (concat "for '" this.q "'")}}
6-
@icon="magnifier"
76
@showSpinner={{this.dataTask.isRunning}}
87
data-test-header
98
/>

app/templates/settings/appearance.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{page-title 'Settings'}}
22

3-
<PageHeader @title="Account Settings" @icon="gear"/>
3+
<PageHeader @title="Account Settings" />
44

55
<SettingsPage>
66
<h2>Appearance</h2>

app/templates/settings/email-notifications.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{page-title 'Settings'}}
22

3-
<PageHeader @title="Account Settings" @icon="gear"/>
3+
<PageHeader @title="Account Settings" />
44

55
<SettingsPage>
66
<form local-class="me-email-notifications" {{on "submit" (prevent-default this.saveEmailNotifications)}} >

app/templates/settings/profile.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{page-title 'Settings'}}
22

3-
<PageHeader @title="Account Settings" @icon="gear"/>
3+
<PageHeader @title="Account Settings" />
44

55
<SettingsPage>
66
<div local-class='me-profile'>

app/templates/settings/tokens.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{page-title 'Settings'}}
22

3-
<PageHeader @title="Account Settings" @icon="gear"/>
3+
<PageHeader @title="Account Settings" />
44

55
<SettingsPage>
66
<Settings::ApiTokens @tokens={{@model}} />

public/assets/circle-with-i.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/assets/dashboard.svg

Lines changed: 0 additions & 14 deletions
This file was deleted.

public/assets/gear.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

public/assets/magnifier.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)