feat: expand page ai hermes control surface

This commit is contained in:
lix-2026
2026-05-14 17:04:17 +08:00
parent d1d19f755c
commit f257b2a014
6 changed files with 1447 additions and 50 deletions
+231
View File
@@ -2668,6 +2668,95 @@ body {
gap: 4px;
}
.wolai-page-ai-statusbar {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(68px, auto) minmax(72px, auto) auto;
gap: 8px;
align-items: stretch;
}
.wolai-page-ai-statusitem {
min-width: 0;
padding: 8px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 8px;
background: #FAFAFA;
}
.wolai-page-ai-statuslabel,
.wolai-page-ai-profile-select span,
.wolai-page-ai-context-select span,
.wolai-page-ai-skill-search span,
.wolai-page-ai-memory-scope,
.wolai-page-ai-skill-source {
display: block;
color: #8B8782;
font-size: 11px;
line-height: 16px;
}
.wolai-page-ai-statusvalue {
display: block;
min-width: 0;
overflow: hidden;
color: #1B1C1C;
font-size: 12px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.wolai-page-ai-settings-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 0 10px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 8px;
color: #1B1C1C;
font-size: 12px;
text-decoration: none;
}
.wolai-page-ai-topbar {
display: grid;
grid-template-columns: minmax(0, 1fr) 132px;
gap: 8px;
}
.wolai-page-ai-profile-select,
.wolai-page-ai-context-select,
.wolai-page-ai-skill-search {
display: grid;
gap: 4px;
min-width: 0;
}
.wolai-page-ai-profile-select select,
.wolai-page-ai-context-select select,
.wolai-page-ai-skill-search input {
width: 100%;
min-width: 0;
height: 34px;
padding: 0 10px;
border: 1px solid rgba(27, 28, 28, 0.12);
border-radius: 8px;
background: #FFF;
color: #1B1C1C;
font-size: 12px;
}
.wolai-page-ai-inline-error {
padding: 8px 10px;
border: 1px solid rgba(198, 80, 80, 0.18);
border-radius: 8px;
background: #FFF5F5;
color: #9F2D2D;
font-size: 12px;
line-height: 18px;
}
.wolai-page-ai-body {
display: flex;
min-height: 0;
@@ -2676,6 +2765,24 @@ body {
gap: 16px;
}
.wolai-page-ai-tabs {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
}
.wolai-page-ai-panel-section {
display: flex;
min-height: 0;
flex: 1 1 auto;
flex-direction: column;
gap: 12px;
}
.wolai-page-ai-panel-section[hidden] {
display: none !important;
}
.wolai-page-ai-suggestions {
display: flex;
flex-direction: column;
@@ -2731,6 +2838,122 @@ body {
overflow: auto;
}
.wolai-page-ai-memory-grid {
display: flex;
min-height: 0;
flex: 1 1 auto;
flex-direction: column;
gap: 10px;
overflow: auto;
}
.wolai-page-ai-memory-card {
display: grid;
gap: 8px;
padding: 10px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 8px;
background: #FFF;
}
.wolai-page-ai-memory-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
}
.wolai-page-ai-memory-title,
.wolai-page-ai-skill-name {
color: #1B1C1C;
font-size: 13px;
font-weight: 600;
line-height: 18px;
}
.wolai-page-ai-memory-editor {
width: 100%;
min-height: 118px;
padding: 10px;
border: 1px solid rgba(27, 28, 28, 0.1);
border-radius: 8px;
background: #FAFAFA;
color: #1B1C1C;
font-size: 12px;
line-height: 18px;
resize: vertical;
}
.wolai-page-ai-skills-toolbar {
display: flex;
gap: 8px;
}
.wolai-page-ai-skill-list {
display: flex;
min-height: 0;
flex: 1 1 auto;
flex-direction: column;
gap: 8px;
overflow: auto;
}
.wolai-page-ai-skill-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
padding: 10px;
border: 1px solid rgba(27, 28, 28, 0.08);
border-radius: 8px;
background: #FFF;
}
.wolai-page-ai-skill-copy {
min-width: 0;
}
.wolai-page-ai-skill-desc {
display: -webkit-box;
overflow: hidden;
color: #5A5A5A;
font-size: 12px;
line-height: 18px;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.wolai-page-ai-skill-switch {
position: relative;
width: 36px;
height: 22px;
flex: 0 0 36px;
border: 0;
border-radius: 999px;
background: #D8D6D1;
cursor: pointer;
}
.wolai-page-ai-skill-switch span {
position: absolute;
top: 3px;
left: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #FFF;
box-shadow: 0 1px 3px rgba(27, 28, 28, 0.16);
transition: transform 0.16s ease;
}
.wolai-page-ai-skill-switch.is-on {
background: #F97316;
}
.wolai-page-ai-skill-switch.is-on span {
transform: translateX(14px);
}
.wolai-page-ai-message {
display: flex;
flex-direction: column;
@@ -2828,6 +3051,14 @@ body {
width: min(100vw - 24px, 420px);
}
.wolai-page-ai-statusbar {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wolai-page-ai-topbar {
grid-template-columns: minmax(0, 1fr);
}
.wolai-public-pill,
.wolai-breadcrumb-root,
.wolai-breadcrumb-separator {