From a16c26afaeeb4ae2bde716cabc7620678ebd90b4 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Tue, 21 Feb 2023 21:26:18 +0000 Subject: [PATCH] palette styels --- lapce-app/src/app.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lapce-app/src/app.rs b/lapce-app/src/app.rs index 2b0c4ca6..f1301292 100644 --- a/lapce-app/src/app.rs +++ b/lapce-app/src/app.rs @@ -809,8 +809,8 @@ fn palette_input(cx: AppContext, window_tab_data: WindowTabData) -> impl View { .style(cx, || Style { flex_grow: 1.0, min_width: Dimension::Points(0.0), - padding_top: 5.0, - padding_bottom: 5.0, + height: Dimension::Points(24.0), + align_items: Some(AlignItems::Center), ..Default::default() }) }) @@ -888,10 +888,11 @@ fn palette(cx: AppContext, window_tab_data: WindowTabData) -> impl View { ) }) .style(cx, move || Style { - width: Dimension::Points(500.0), + width: Dimension::Points(512.0), max_width: Dimension::Percent(0.9), min_height: Dimension::Points(0.0), max_height: Dimension::Percent(0.5), + margin_top: Some(-1.0), border: 1.0, border_radius: 5.0, flex_direction: FlexDirection::Column,