Skip to content

Commit 249b7cb

Browse files
committed
VersionList::Row: Center the dropdown trigger vertically
1 parent 4ba7e47 commit 249b7cb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/components/version-list/row.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
{{/if}}
118118
</div>
119119

120-
<PrivilegedAction @userAuthorised={{this.isOwner}}>
120+
<PrivilegedAction @userAuthorised={{this.isOwner}} local-class="actions">
121121
<Dropdown local-class="dropdown" data-test-actions-menu as |dd|>
122122
<dd.Trigger @hideArrow={{true}} local-class="trigger" data-test-actions-toggle>
123123
{{svg-jar "ellipsis-circle" local-class="icon"}}

app/components/version-list/row.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,12 @@
235235
margin-top: var(--space-2xs);
236236
}
237237

238+
.actions {
239+
display: flex;
240+
}
241+
238242
.dropdown {
243+
display: flex;
239244
font-size: initial;
240245
line-height: 1rem;
241246
}
@@ -260,6 +265,7 @@
260265
}
261266

262267
.menu {
268+
top: 100%;
263269
right: 0;
264270
min-width: max-content;
265271
}

0 commit comments

Comments
 (0)