iter: d25 menu 条目支持快捷键提示

This commit is contained in:
ui-arch-bot
2026-10-23 17:06:17 +08:00
parent 6efe3ab57b
commit 6a5e6623fe
9 changed files with 42 additions and 11 deletions
+18 -1
View File
@@ -360,8 +360,11 @@
visibility: visible;
}
.ua-menu-item {
display: block;
display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
gap: var(--ua-space-4);
text-align: left;
padding: 6px 10px;
border: none;
@@ -381,6 +384,20 @@
.ua-menu-item.is-danger:hover:not(:disabled) {
background: color-mix(in srgb, var(--ua-color-danger) 10%, transparent);
}
.ua-menu-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ua-menu-key {
flex: none;
color: var(--ua-color-text-muted);
font-family: inherit;
font-size: var(--ua-font-size-sm);
opacity: 0.8;
}
.ua-menu-item:disabled {
opacity: 0.45;
cursor: not-allowed;