实现 Codex 风格上下文压缩时间线交互
This commit is contained in:
@@ -737,6 +737,31 @@ html[data-ui-language='ru'] {
|
||||
will-change: opacity, transform;
|
||||
}
|
||||
|
||||
@keyframes context-compaction-shimmer {
|
||||
from {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
|
||||
to {
|
||||
background-position: -100% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.context-compaction-shimmer {
|
||||
color: transparent;
|
||||
background-image: linear-gradient(
|
||||
100deg,
|
||||
hsl(var(--muted-foreground) / 0.58) 25%,
|
||||
hsl(var(--foreground) / 0.78) 50%,
|
||||
hsl(var(--muted-foreground) / 0.58) 75%
|
||||
);
|
||||
background-position: 100% 50%;
|
||||
background-size: 200% 100%;
|
||||
background-clip: text;
|
||||
animation: context-compaction-shimmer 2.4s linear infinite;
|
||||
-webkit-background-clip: text;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
@@ -770,4 +795,10 @@ html[data-ui-language='ru'] {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
|
||||
.context-compaction-shimmer {
|
||||
color: hsl(var(--muted-foreground));
|
||||
background-image: none;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user