From a169f730ebbf8b40595b9e7b0791ced6cbae90e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 30 Oct 2026 02:07:37 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20the=20avatar=20in=20the?= =?UTF-8?q?=20profile=20corner=20no=20longer=20gets=20a=20glowing=20accent?= =?UTF-8?q?=20ring=20while=20one=20of=20the=20viewer's=20runs=20goes;=20ru?= =?UTF-8?q?nning=20CI=20shows=20in=20the=20live=20strip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/forge-web/assets/nav.js | 10 +--------- crates/forge-web/src/views/mod.rs | 8 ++------ style/_shell.scss | 20 ++------------------ 3 files changed, 5 insertions(+), 33 deletions(-) diff --git a/crates/forge-web/assets/nav.js b/crates/forge-web/assets/nav.js index 4e03596..16a1c9e 100644 --- a/crates/forge-web/assets/nav.js +++ b/crates/forge-web/assets/nav.js @@ -1859,11 +1859,6 @@ }); } - // The heat ring: an accent ring while any of the viewer's runs is going, none otherwise. - function drawRing(ring, running) { - if (running.length) { ring.classList.add('hot'); } else { ring.classList.remove('hot'); } - } - // The chips: one per non-zero count. The titles come from the chip box's templates, with `{n}` // standing for the count; the singular template is used for one. function drawChips(box, json) { @@ -1892,14 +1887,11 @@ }); } - // Redraws every strip, ring and chip box on the page from one activity JSON. The + // Redraws every strip and chip box on the page from one activity JSON. The // elements are looked up here each time, since a swap may have replaced them. function drawActivity(json) { var strips = document.querySelectorAll('.live-strip[data-activity]'); for (var i = 0; i < strips.length; i++) { drawStrip(strips[i], json); } - var running = json.running || []; - var rings = document.querySelectorAll('.heat-ring'); - for (var r = 0; r < rings.length; r++) { drawRing(rings[r], running); } var boxes = document.querySelectorAll('.corner-chips'); for (var b = 0; b < boxes.length; b++) { drawChips(boxes[b], json); } // Finished runs leave the strip when the server's window ends, so the JSON is asked for again. diff --git a/crates/forge-web/src/views/mod.rs b/crates/forge-web/src/views/mod.rs index ba5a52a..67c33fc 100644 --- a/crates/forge-web/src/views/mod.rs +++ b/crates/forge-web/src/views/mod.rs @@ -316,7 +316,6 @@ struct ProfileCorner { reviews: u64, mentions: u64, failing: u64, - hot: bool, /// The newest waiting review request, mention and failed run, each chip's link. review_href: String, mention_href: String, @@ -324,11 +323,10 @@ struct ProfileCorner { } /// The account corner at the foot of the signed-in sidebar and in the phone menu. It opens upward: -/// the heat ring, the chips, what waits on the viewer, the notifications link, the theme choice, +/// the avatar, the chips, what waits on the viewer, the notifications link, the theme choice, /// and the profile, settings, admin and log out links. #[component] async fn profile_corner(lang: Lang, corner: ProfileCorner) -> Result { - let ring_class = if corner.hot { "heat-ring hot" } else { "heat-ring" }; let review_chip = (corner.reviews > 0).then(|| { (corner.reviews.to_string(), mi::review_requests_count(lang, corner.reviews)) }); @@ -365,7 +363,7 @@ async fn profile_corner(lang: Lang, corner: ProfileCorner) -> Result
- + (corner.name.as_str()) if let Some((count, title)) = review_chip { @@ -607,7 +605,6 @@ pub async fn shell( let search_for_label = mi::t(lang, MK::SearchPublicReposFor); // The profile corner, the signed-in sidebar's account menu. The sidebar and the phone menu // each get their own copy. - let hot = !runs.running.is_empty(); // Each chip leads to the newest thing it counts; a review or mention past the five newest // waiting items falls back to the inbox. let newest_waiting = |review: bool| { @@ -647,7 +644,6 @@ pub async fn shell( reviews: inbox.reviews, mentions: inbox.mentions, failing: runs.failing, - hot, review_href, mention_href, failing_href, diff --git a/style/_shell.scss b/style/_shell.scss index be4c877..05fd51e 100644 --- a/style/_shell.scss +++ b/style/_shell.scss @@ -716,33 +716,17 @@ -webkit-box-orient: vertical; } -// The avatar on its own when nothing runs; while a run of the viewer's is queued or running (.hot) -// an accent ring appears around it, glowing softly. -.heat-ring { +// The avatar beside the name. Running CI shows in the live strip, not around the avatar. +.corner-avatar { display: grid; flex: none; place-items: center; - width: 34px; - height: 34px; - border-radius: 50%; - - &.hot { - background: conic-gradient(var(--heat-2), var(--heat-3), var(--heat-4), var(--heat-2)); - filter: drop-shadow(0 0 5px var(--heat-glow)); - } .avatar { - box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; } - - &.hot .avatar { - width: 30px; - height: 30px; - border: 2px solid var(--bg); - } } .corner-chips {