mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): 3-tier update modes, topbar update prompt, and Gemini Hydrogen & Helix support (v1.4.4)
This commit is contained in:
+130
-12
@@ -280,6 +280,8 @@ input {
|
||||
.steps-inline-scope-select .select-menu {
|
||||
left: auto;
|
||||
right: 0;
|
||||
min-width: 220px;
|
||||
max-width: min(320px, 82vw);
|
||||
}
|
||||
|
||||
.session-left {
|
||||
@@ -2236,21 +2238,40 @@ input {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.steps-panel-header {
|
||||
flex-wrap: wrap;
|
||||
row-gap: 6px;
|
||||
}
|
||||
|
||||
.steps-panel-title {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.steps-header-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
flex: 1 1 280px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.steps-header-controls .segmented {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.steps-inline-scope-select {
|
||||
flex: 1 1 120px;
|
||||
min-width: 120px;
|
||||
flex: 0 1 180px;
|
||||
min-width: 72px;
|
||||
max-width: 190px;
|
||||
}
|
||||
|
||||
.steps-inline-scope-select .select-trigger {
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
font-size: 11px;
|
||||
border: 1px solid var(--border-hairline);
|
||||
background: var(--surface-subtle);
|
||||
@@ -2337,6 +2358,7 @@ input {
|
||||
}
|
||||
|
||||
.wm-multi-btn[hidden],
|
||||
.wm-update-btn[hidden],
|
||||
.wm-cap-slot[hidden],
|
||||
.wm-sep[hidden] {
|
||||
display: none !important;
|
||||
@@ -2558,7 +2580,7 @@ input {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 右上角绝对定位更新圆点,不参与文档流,零宽度抖动 */
|
||||
/* 仅在超窄 ring-only 折叠态下使用右上角 5px 提示圆点;常规态由柔和微胶囊 .wm-update-btn 承载 */
|
||||
.wm-update-dot {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
@@ -2566,10 +2588,83 @@ input {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--metric-ok);
|
||||
background: var(--accent-primary);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host:not([data-layout="ring-only"])) .wm-update-dot {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 顶栏右侧柔和半透明新版本胶囊按钮(20px 矮胶囊嵌套于 28px 顶栏,克制不突兀,左键一键升级) */
|
||||
.wm-update-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 3px;
|
||||
height: 20px;
|
||||
padding: 0 6px 0 5px;
|
||||
margin: 0;
|
||||
background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
|
||||
color: var(--accent-primary);
|
||||
border: 1px solid color-mix(in srgb, var(--accent-primary) 24%, transparent);
|
||||
border-radius: var(--radius-pill);
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 18px;
|
||||
letter-spacing: 0.01em;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
-webkit-app-region: no-drag;
|
||||
transition:
|
||||
background-color var(--dur-instant) var(--ease-fast),
|
||||
border-color var(--dur-instant) var(--ease-fast),
|
||||
transform var(--dur-instant) var(--ease-fast);
|
||||
}
|
||||
|
||||
.wm-update-btn:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, var(--accent-primary) 18%, transparent);
|
||||
border-color: color-mix(in srgb, var(--accent-primary) 40%, transparent);
|
||||
}
|
||||
|
||||
.wm-update-btn:active:not(:disabled) {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
|
||||
.wm-update-btn:disabled {
|
||||
opacity: 0.72;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
@keyframes wm-spin-icon {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.wm-update-btn.is-updating .svg-icon {
|
||||
animation: wm-spin-icon 0.9s linear infinite;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-layout="minimal"]) .wm-update-label {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-layout="minimal"]) .wm-update-btn {
|
||||
width: 20px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:host(.wm-capsule-host[data-layout="ring-only"]) .wm-update-btn {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 四级响应式迟滞折叠(基于可见槽位次序 data-vis-rank 与分隔线次序 data-sep-for-rank 动态折叠) */
|
||||
:host(.wm-capsule-host[data-layout="compact"]) .wm-cap-slot[data-vis-rank="3"],
|
||||
:host(.wm-capsule-host[data-layout="compact"]) .wm-sep[data-sep-for-rank="3"] {
|
||||
@@ -2730,6 +2825,36 @@ input {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.wm-hover-update-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-2);
|
||||
padding: 5px 10px;
|
||||
border-radius: var(--radius-xs);
|
||||
background: var(--accent-primary-soft);
|
||||
border: 1px solid var(--accent-primary-border);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.wm-hover-update-left {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: var(--accent-primary);
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.wm-hover-update-hint {
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.wm-hover-quota-pools {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -2839,10 +2964,3 @@ input {
|
||||
background: color-mix(in srgb, var(--text-secondary) 38%, transparent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.wm-multi-empty-hint {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user