From 6c8a7260ecb8d70c343fb055a373aa8cbe743537 Mon Sep 17 00:00:00 2001 From: dev Date: Sat, 6 Jun 2026 01:42:54 +0200 Subject: [PATCH] perf(eidos): code-split 7 menu recipes + order-independent menu-indicator (Phase 3, batch 2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dropdown-menu context-menu menubar command listbox navigation-menu grid-list now self-import their recipes; removed from index.css. menu-indicator.css (shared by dropdown/context checkbox+radio rows) had a load-ORDER dependency: its longhand padding-inline-start (0,1,0) only beat the menu row's padding-inline shorthand (0,1,0) by coming later in the aggregate. Code-splitting breaks that order, so the partial is made ORDER-INDEPENDENT via a specificity bump (doubled attribute → 0,2,0). It now travels in dropdown-menu/context-menu's chunk (imported from their .svelte) instead of the foundation. Verified in browser: checkbox item padding-inline-start = 26px (indicator wins), plain item = 8px. index.css 58→51 @imports. Monolith 666,436→633,277 raw (−33 KB) / 90,381→86,535 gz (−3.8 KB). check 0 errors. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/uix/eidos/components/command/command.svelte | 1 + .../components/context-menu/context-menu.svelte | 4 ++++ .../components/dropdown-menu/dropdown-menu.svelte | 4 ++++ .../eidos/components/grid-list/grid-list.svelte | 1 + src/uix/eidos/components/listbox/listbox.svelte | 1 + src/uix/eidos/components/menubar/menubar.svelte | 1 + .../navigation-menu/navigation-menu.svelte | 1 + src/uix/eidos/index.css | 11 ----------- src/uix/eidos/lib/menu-indicator.css | 15 ++++++++++----- 9 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/uix/eidos/components/command/command.svelte b/src/uix/eidos/components/command/command.svelte index 554a43446..6f68a659b 100644 --- a/src/uix/eidos/components/command/command.svelte +++ b/src/uix/eidos/components/command/command.svelte @@ -1,4 +1,5 @@