git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commited06ee00923842f66e81b0ff4163a985d87805fb
parent76c56ad1d7
authorLucas Galante <[email protected]>
date2026-07-21 10:09
fix: drop the browse page's second inset inside the pane rect

The pane rect already sits backplate_padding off the plate rim; the
page's own margin=12 stacked on top, putting the list 28px from the
edge while cce-data-editor's tree (placed at its pane rect) sits at 16.
Margin goes to 0 and the breadcrumb/list gap now reads backplate_gap.
Verified pixel-exact: both apps' recess walls now start at the same
column.

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/pages/browse.rs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pages/browse.rs b/src/pages/browse.rs
index 127ce96..c39d457 100644
--- a/src/pages/browse.rs
+++ b/src/pages/browse.rs
@@ -168,8 +168,11 @@ pub fn view(state: &mut BrowseState, view_dropdown: &mut cce_ui::widget::Adapted
     let text_dim = cce_ui::color::TEXT_DIM;
 
 
-    let gap = 12.0;
-    let margin = 12.0;
+    // The pane rect already sits backplate_padding off the plate rim — no
+    // second inset here, or the list lands 16+12 from the edge while apps
+    // that place content at the pane rect (cce-data-editor's tree) sit at 16.
+    let gap = cce_ui::layout::backplate_gap();
+    let margin = 0.0;
     let mut layout = ColumnLayout::new(gap);
     let client_x = cx + margin;
     let client_y = cy + margin;