Skip to content

Commit 7c92c36

Browse files
committed
Fix so wrapped anchor links don't have extra left margin
1 parent 260e712 commit 7c92c36

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

app/components/class-field-description.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{! template-lint-disable no-invalid-interactive }}
2-
<section class='{{@type}}'>
3-
<h3 id='{{@field.name}}'>
2+
<section class='class-field-description {{@type}}'>
3+
<h3 id='{{@field.name}}' class="class-field-description--header">
44
<span class='{{@type}}-name'>{{@field.name}}</span>
55
{{#if @field.params}}
66
<span class='args'>

app/styles/app.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,15 @@ li.toc-heading:first-child {
105105
margin-top: var(--spacing-2);
106106
}
107107

108+
.class-field-description--header {
109+
display: flex;
110+
align-items: center;
111+
flex-wrap: wrap;
112+
column-gap: var(--spacing-1);
113+
}
114+
108115
a.class-field-description--link {
109-
margin-left: 12px;
116+
margin-left: 0;
110117
vertical-align: middle;
111118
background: none;
112119
cursor: pointer;
@@ -139,6 +146,7 @@ dd {
139146
}
140147

141148
.parameter-type,
149+
.class-field-description .return-type,
142150
.return .return-type {
143151
font-style: italic;
144152
color: var(--color-gray-600);

0 commit comments

Comments
 (0)