The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): arc layer at 240% so it overhangs the ring at cycle end
kshitijk4poor1ad2eb1ecf00
diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.cssindex c989b9c44e5..4a38242ffde 100644--- a/apps/desktop/src/styles.css+++ b/apps/desktop/src/styles.css@@ -1114,19 +1114,18 @@}@keyframes arc-border {- /* Transform travel, never background-position: the old background-position- version cost ~3,600 main-thread style recalcs per minute per arc- (#53902, #73082).-- One cycle moves the ::before layer by (1.2W, 1.2H), which advances the- gradient along --arc-angle by exactly one period of the repeating- gradient below, so the loop is seamless. 1.2 of the host is 54.5455% of- the 220% layer. */+ /* Transform travel (compositor-only), never background-position: the old+ background-position version cost ~3,600 main-thread style recalcs per+ minute per arc (#53902, #73082).++ One cycle moves the ::before layer by 1.2 of the host (50% of the 240%+ layer), which advances the gradient by exactly one period, so the loop+ is seamless. */0% {transform: translate(0, 0);}100% {- transform: translate(-54.5455%, -54.5455%);+ transform: translate(-50%, -50%);}}@@ -1209,31 +1208,21 @@position: absolute;top: 0;left: 0;- /* The layer carries the gradient and travels by `transform`; the host's- mask + overflow clip it to the ring. It only needs to cover the host- through one cycle of travel (1.2 of the host, see the keyframes), so it- is 220% of the host, not the 300% it used to be (4.84× the host's area- instead of 9×).-- The gradient is one period of the old 300% gradient, repeated. The old- one was periodic every 40% of its line (0–40 repeats as 40–80, 80–100- as 0–20), and its travel moved exactly one period per cycle, so only- that period was ever visible. Same period in pixels and same profile:- 40% of a 300% line is 54.5455% of a 220% line, and each stop keeps its- place within the period (15/40 → 20.4545%, and so on). Untransformed,- both start the period at the host's corner, so the static- reduced-motion ring is the same too. The arithmetic assumes- --arc-angle between 90deg and 180deg, as the 300% version did. */- width: 220%;- height: 220%;+ /* One period of the gradient, repeated, on a layer the host's mask and+ overflow clip to the ring. Invariants: the period (50% of the layer's+ gradient line) equals one cycle of travel; the layer still covers the+ host at the end of the cycle (0.2 of the host to spare); the stops are+ fractions of that period. Holds for --arc-angle in 90deg..180deg. */+ width: 240%;+ height: 240%;background: repeating-linear-gradient(var(--arc-angle),transparent 0%,- var(--arc-c0) 20.4545%,- var(--arc-c1) 27.2727%,- var(--arc-c2) 34.0909%,- transparent 47.7273%,- transparent 54.5455%+ var(--arc-c0) 18.75%,+ var(--arc-c1) 25%,+ var(--arc-c2) 31.25%,+ transparent 43.75%,+ transparent 50%);will-change: transform;animation: arc-border var(--arc-duration) linear infinite;@@ -1260,8 +1249,8 @@2. A visible tail. `--arc-c2` defaults to `--dt-background` — invisibleagainst the sidebar. With c0 a transparent sentinel and c2 invisible, only- the bright c1 stop survives each pass, and the gradient has three of them:- three moving dots instead of an arc. Tying c2 to c1 gives each spike a+ the bright c1 stop survives each pass, and it repeats along the ring:+ moving dots instead of an arc. Tying c2 to c1 gives each spike afalloff. (`arc-nous` already overrides c2, so the hero is unaffected.) */.arc-border.arc-row,:root.dark .arc-border.arc-row {