添加艾特角色功能

This commit is contained in:
Azmat@qq.com
2026-09-17 18:31:29 +08:00
parent 5df038c635
commit abccf4393a
18 changed files with 2769 additions and 182 deletions
+114 -23
View File
@@ -2019,7 +2019,7 @@
gap: 6px;
max-width: 220px;
padding: 3px 8px 3px 4px;
border-radius: 999px;
border-radius: var(--r-pill);
font-size: 12px;
line-height: 1.2;
}
@@ -2027,7 +2027,7 @@
.omni-mention-chip.has-thumb {
max-width: none;
padding: 0;
border-radius: 10px;
border-radius: var(--r-md);
background: transparent;
border: 0;
overflow: visible;
@@ -2038,10 +2038,11 @@
width: 52px;
height: 52px;
padding: 0;
border: 1px solid rgba(34, 42, 54, .1);
border-radius: 10px;
border: 0;
border-radius: var(--r-md);
overflow: hidden;
background: #f3f4f7;
background: var(--background-lighter);
box-shadow: inset 0 0 0 1px var(--border-faint);
cursor: zoom-in;
}
@@ -2055,15 +2056,15 @@
.omni-mention-chip i {
flex: 0 0 auto;
padding: 2px 6px;
border-radius: 999px;
border-radius: var(--r-pill);
font-style: normal;
font-size: 11px;
font-weight: 700;
font-weight: 600;
}
.omni-mention-chip b {
overflow: hidden;
font-weight: 650;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -2076,7 +2077,7 @@
margin-left: 2px;
padding: 0;
border: 0;
border-radius: 50%;
border-radius: var(--r-pill);
background: transparent;
cursor: pointer;
}
@@ -2087,9 +2088,8 @@
right: -6px;
width: 18px;
height: 18px;
color: #fff;
background: rgba(34, 42, 54, .72);
box-shadow: 0 2px 6px rgba(20, 27, 38, .18);
color: var(--surface);
background: var(--black-alpha-72);
}
.omni-mention-chip .omni-mention-remove svg {
@@ -2098,13 +2098,13 @@
}
.omni-mention-chips.is-user .omni-mention-chip:not(.has-thumb) {
color: #fff;
background: rgba(255, 255, 255, .14);
color: var(--surface);
background: var(--black-alpha-12);
}
.omni-mention-chips.is-user .omni-mention-chip i {
color: var(--klein);
background: #edf5ff;
color: var(--heat);
background: var(--heat-12);
}
.omni-chat-stack .omni-mention-chips.is-user {
@@ -2117,22 +2117,113 @@
}
.omni-mention-chips.is-composer {
margin: 0 2px 8px;
margin: 0 2px 6px;
}
.omni-mention-chips.is-composer .omni-mention-chip:not(.has-thumb) {
color: #2b3240;
background: #edf5ff;
border: 1px solid rgba(0, 47, 167, .12);
color: var(--accent-black);
background: var(--heat-12);
box-shadow: inset 0 0 0 1px var(--heat-20);
}
.omni-mention-chips.is-composer .omni-mention-chip i {
color: #fff;
background: var(--klein);
color: var(--surface);
background: var(--heat);
}
.omni-mention-chips.is-composer .omni-mention-chip:not(.has-thumb) .omni-mention-remove {
color: #66707d;
color: var(--black-alpha-56);
}
.omni-mention-chips.is-composer .omni-mention-thumb {
width: 28px;
height: 28px;
border-radius: var(--r-md);
cursor: zoom-in;
}
.omni-mention-chips.is-composer .omni-mention-chip.has-thumb .omni-mention-remove {
top: -5px;
right: -5px;
width: 15px;
height: 15px;
opacity: 0;
transition: opacity var(--t-base);
}
.omni-mention-chips.is-composer .omni-mention-chip.has-thumb:hover .omni-mention-remove,
.omni-mention-chips.is-composer .omni-mention-chip.has-thumb:focus-within .omni-mention-remove {
opacity: 1;
}
.omni-mention-hover-preview {
position: absolute;
bottom: calc(100% + 10px);
left: 0;
z-index: 40;
width: 244px;
display: grid;
gap: 10px;
padding: 12px;
border-radius: var(--r-md);
color: var(--accent-black);
background: var(--surface-raised);
box-shadow: var(--shadow-floating);
opacity: 0;
pointer-events: none;
text-align: left;
transform: translateY(4px);
transition: opacity var(--t-base), transform var(--t-base);
}
.omni-mention-chip.has-thumb:hover .omni-mention-hover-preview,
.omni-mention-chip.has-thumb:focus-within .omni-mention-hover-preview {
opacity: 1;
transform: translateY(0);
}
.omni-mention-chips.is-user .omni-mention-hover-preview {
right: 0;
left: auto;
}
.omni-mention-hover-head {
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.omni-mention-hover-head strong {
overflow: hidden;
font-size: 13px;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
.omni-mention-hover-head small {
flex: 0 0 auto;
color: var(--black-alpha-48);
font-family: var(--font-mono);
font-size: 10.5px;
}
.omni-mention-hover-media {
width: 100%;
aspect-ratio: 1;
display: block;
overflow: hidden;
border-radius: var(--r-md);
background: var(--background-lighter);
}
.omni-mention-hover-media img {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
.omni-chat-stack {