From 7ab35cd7c8dbe3e1558c272dd22c2934d7049283 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 30 Aug 2024 16:18:25 +0200 Subject: [PATCH] spot: optimize CSS containment for improved performance --- spot/entrypoints/content/style.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spot/entrypoints/content/style.css b/spot/entrypoints/content/style.css index 9e175462f..e8d9dc6cb 100644 --- a/spot/entrypoints/content/style.css +++ b/spot/entrypoints/content/style.css @@ -6,7 +6,6 @@ :host { all: initial; - contain: content; /* Boom. CSS containment FTW. */ } @@ -33,6 +32,10 @@ width: 100%; } +.save-controls { + contain: content; +} + .container { background-color: rgba(0, 0, 0, 0.8); display: flex; @@ -299,7 +302,7 @@ textarea { left: 45%; transform: translateX(-50%); z-index: 999999; - + contain: content; } .popupanimated {