From 767dfce556f27fc7d2d98fcccc86fc642d24904e Mon Sep 17 00:00:00 2001 From: rain capsule <29630035+busybox11@users.noreply.github.com> Date: Tue, 14 Apr 2026 16:11:18 +0200 Subject: [PATCH] gh-7099: slight CSS and SVG optimizations on notes anim loop (gh-13246) --- src/zen/images/note-indicator.svg | 106 +++++++++++++-------------- src/zen/media/zen-media-controls.css | 8 +- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/src/zen/images/note-indicator.svg b/src/zen/images/note-indicator.svg index 02ff00771..1c69eae03 100644 --- a/src/zen/images/note-indicator.svg +++ b/src/zen/images/note-indicator.svg @@ -6,13 +6,44 @@ - - - - + + - - - + + - - - + + - - - + + - - - + + - - - + + diff --git a/src/zen/media/zen-media-controls.css b/src/zen/media/zen-media-controls.css index 8b23e50ee..9cabf107e 100644 --- a/src/zen/media/zen-media-controls.css +++ b/src/zen/media/zen-media-controls.css @@ -117,16 +117,16 @@ & #zen-media-focus-button::after { content: ""; position: absolute; - width: 110%; - height: 110%; background: url("chrome://browser/content/zen-images/note-indicator.svg") no-repeat; top: -70%; - left: 50%; - transform: translateX(-50%); + left: 0; + right: 0; + bottom: 0; z-index: 0; pointer-events: none; transition: opacity 0.8s ease; opacity: 1; + will-change: opacity; } &:is(:not(.playing:not([muted])), :hover) #zen-media-focus-button::after {