git.lucas.co / cce-fonts
font browser

commitfea5fccfec897a2ac613ead3558583900c938af0
parentad9e1272b7
authorLucas Galante <[email protected]>
date2026-09-08 18:09
chore: label_strip replaces widget::label_offset

cce-ui dropped the free function; the dropdown and spinbox rows are sized
content plus their own label strip.

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

 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index b09f9b3..10156b2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -781,8 +781,8 @@ impl Application for TypefaceApp {
             }
 
             // Preview panel widgets layout
-            let style_dropdown_h = cce_ui::layout::dropdown_height() + cce_ui::widget::label_offset(&self.style_dropdown);
-            let size_spinbox_h = cce_ui::layout::spinbox_height() + cce_ui::widget::label_offset(&self.size_spinbox);
+            let style_dropdown_h = cce_ui::layout::dropdown_height() + self.style_dropdown.label_strip();
+            let size_spinbox_h = cce_ui::layout::spinbox_height() + self.size_spinbox.label_strip();
             let preview_box_h = if self.select_mode { 120.0 } else { 180.0 };
 
             let scroll_y = self.mid_region.scroll_y;