8000 Replace yank button with a drop down menu by eth3lbert · Pull Request #11366 · rust-lang/crates.io · GitHub
[go: up one dir, main page]

Skip to content

Replace yank button with a drop down menu #11366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 18, 2025
Prev Previous commit
VersionList::Row: Center the dropdown trigger vertically
  • Loading branch information
Turbo87 committed Jun 18, 2025
commit 249b7cb1db270c53902d61cbdaed6b227fc1affb
2 changes: 1 addition & 1 deletion app/components/version-list/row.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{{/if}}
</div>

<PrivilegedAction @userAuthorised={{this.isOwner}}>
<PrivilegedAction @userAuthorised={{this.isOwner}} local-class="actions">
<Dropdown local-class="dropdown" data-test-actions-menu as |dd|>
<dd.Trigger @hideArrow={{true}} local-class="trigger" data-test-actions-toggle>
{{svg-jar "ellipsis-circle" local-class="icon"}}
Expand Down
6 changes: 6 additions & 0 deletions app/components/version-list/row.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@
margin-top: var(--space-2xs);
}

.actions {
display: flex;
}

.dropdown {
display: flex;
font-size: initial;
line-height: 1rem;
}
Expand All @@ -260,6 +265,7 @@
}

.menu {
top: 100%;
right: 0;
min-width: max-content;
}
Expand Down
Loading
0