Compare commits

...
Author SHA1 Message Date
Cursor Agent 0aab2f540f Fix ultrathink frame border clipping by matching padding to ring thickness
The ::before pseudo-element creates a 2px ring via the mask technique,
but the wrapper had only 1px padding (p-px). This caused the inner half
of the ring to be covered by the relatively-positioned glass surface.

Change p-px to p-0.5 (2px) to align with:
- The 2px ring thickness in ::before's padding
- The 2px radius difference (22px outer vs 20px inner)
2026-07-01 00:28:11 +00:00
Julius Marminge 8cd353ab30 Restore ultrathink frame border effect
- Move the spectrum border into a masked ::before layer
- Keep ultrathink content above the animated frame
2026-06-30 17:22:27 -07:00
2 changed files with 24 additions and 1 deletions

No files matched your search

@@ -2049,7 +2049,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
>
<div
className={cn(
"group rounded-[22px] p-px transition-colors duration-200",
"group rounded-[22px] p-0.5 transition-colors duration-200",
composerProviderState.composerFrameClassName,
)}
onDragEnter={onComposerDragEnter}
+23
View File
@@ -812,12 +812,35 @@ label:has(> select#reasoning-effort) select {
#ec4899 90%,
#ff6b6b 100%
);
position: relative;
background: transparent;
}
.ultrathink-frame::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
padding: 2px;
background-image: var(--ultrathink-spectrum);
background-size: 220% 220%;
pointer-events: none;
filter: saturate(0.82) brightness(0.92);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
animation: ultrathink-rainbow 10s linear infinite;
}
.ultrathink-frame > * {
position: relative;
}
.ultrathink-chroma {
animation: ultrathink-chroma-shift 10s linear infinite;
}