Skip to content

Commit 0324674

Browse files
committed
Tiny bit of CSS, fix pnpm-lock and route file after merge
1 parent e2ceca9 commit 0324674

File tree

3 files changed

+131
-65
lines changed

3 files changed

+131
-65
lines changed

app/routes/project-version.js

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -133,55 +133,6 @@ export default class ProjectVersionRoute extends Route {
133133
};
134134
}
135135

136-
@action
137-
updateProject(project, ver /*, component */) {
138-
let projectVersionID = ver.compactVersion;
139-
let endingRoute;
140-
switch (this.router.currentRouteName) {
141-
case 'project-version.classes.class': {
142-
let className = this._getEncodedNameForCurrentClass();
143-
endingRoute = `classes/${className}`;
144-
break;
145-
}
146-
case 'project-version.classes.class.index': {
147-
let className = this._getEncodedNameForCurrentClass();
148-
endingRoute = `classes/${className}`;
149-
break;
150-
}
151-
case 'project-version.modules.module.index': {
152-
let moduleName = encodeURIComponent(
153-
this.paramsFor('project-version.modules.module').module
154-
);
155-
endingRoute = `modules/${moduleName}`;
156-
break;
157-
}
158-
case 'project-version.namespaces.namespace.index': {
159-
let namespaceName = this.paramsFor(
160-
'project-version.namespaces.namespace'
161-
).namespace;
162-
endingRoute = `namespaces/${namespaceName}`;
163-
break;
164-
}
165-
default:
166-
endingRoute = '';
167-
break;
168-
}
169-
// if the user is navigating to/from api versions >= 2.16, take them
170-
// to the home page instead of trying to translate the url
171-
let shouldConvertPackages = this.shouldConvertPackages(
172-
ver,
173-
this.projectService.version
174-
);
175-
let isEmberProject = project === 'ember';
176-
if (!isEmberProject || !shouldConvertPackages) {
177-
this.router.transitionTo(
178-
`/${project}/${projectVersionID}/${endingRoute}`
179-
);
180-
} else {
181-
this.router.transitionTo(`/${project}/${projectVersionID}`);
182-
}
183-
}
184-
185136
// Input some version info, returns a boolean based on
186137
// whether the user is switching versions for a 2.16 docs release or later.
187138
// The urls for pre-2.16 classes and later packages are quite different

app/styles/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ dd {
142142
margin-top: 0;
143143
}
144144

145+
section.method, section.property, section.event {
146+
margin-bottom: var(--spacing-3);
147+
}
148+
145149
.whoops {
146150
display: flex;
147151
justify-content: center;

0 commit comments

Comments
 (0)