Cache capture icons and drop unused CSS
Assisted-by: Claude Opus 4.8 via Claude Code
change rkknqzpkvnkwukpntkusvlyspkvxxwtt
commit 967127c43943bf133cbcf0da7830c4da5afaa545
author Alpha Chen <alpha@kejadlen.dev>
date
parent szxsvkyx
diff --git a/lib/views/capture.rb b/lib/views/capture.rb
index 0c51aa9..8b1645b 100644
--- a/lib/views/capture.rb
+++ b/lib/views/capture.rb
@@ -136,8 +136,12 @@ module Domus
         end
       end
 
+      ICONS = Hash.new do |cache, name|
+        cache[name] = File.read(File.join(ICONS_DIR, "#{name}.svg")).freeze
+      end
+
       def icon(name)
-        raw safe(File.read(File.join(ICONS_DIR, "#{name}.svg")))
+        raw safe(ICONS[name])
       end
     end
   end
diff --git a/public/app.css b/public/app.css
index bbd6830..d12ebec 100644
--- a/public/app.css
+++ b/public/app.css
@@ -100,8 +100,6 @@ html, body {
   box-shadow: 0 4px 0 var(--ink), 0 8px 0 var(--accent);
 }
 
-.logo-dot { color: var(--accent); }
-
 /* ---- main content ---- */
 .content {
   flex: 1;