优化agent列表的滑块样式
This commit is contained in:
@@ -204,12 +204,12 @@ export function AgentSelector({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className="relative inline-flex items-center self-center rounded-full bg-muted/50 p-1 border border-border/50"
|
className="relative inline-flex items-center self-center rounded-full bg-muted/50 p-0.5 border border-border/50"
|
||||||
>
|
>
|
||||||
{/* Sliding droplet indicator */}
|
{/* Sliding droplet indicator */}
|
||||||
{indicator && (
|
{indicator && (
|
||||||
<div
|
<div
|
||||||
className="absolute top-1 bottom-1 rounded-full bg-background shadow-sm ring-1 ring-border/50 transition-all duration-300 ease-[cubic-bezier(0.4,0,0.2,1)]"
|
className="absolute top-0.5 bottom-0.5 rounded-full bg-background shadow-sm ring-1 ring-border/50 transition-all duration-300 ease-[cubic-bezier(0.4,0,0.2,1)]"
|
||||||
style={{
|
style={{
|
||||||
left: indicator.left,
|
left: indicator.left,
|
||||||
width: indicator.width,
|
width: indicator.width,
|
||||||
|
|||||||
Reference in New Issue
Block a user