commit 6384e4f0a8da4b1c8be9fdb730f5cd0990211337
parent 671e29a8eed1044bc4ce818db32c76d56ed43233
Author: triesap <tyson@radroots.org>
Date: Sun, 7 Jun 2026 13:42:07 -0700
ui: align account form select styling
Diffstat:
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/crates/desktop/src/window.rs b/crates/desktop/src/window.rs
@@ -9246,9 +9246,20 @@ fn account_profile_labeled_control(
.child(control)
}
+const ACCOUNT_FORM_CONTROL_HEIGHT_PX: f32 = 28.0;
+
fn account_form_text_input(input: &Entity<InputState>) -> impl IntoElement {
app_text_input(input, false)
.with_size(Size::Small)
+ .h(px(ACCOUNT_FORM_CONTROL_HEIGHT_PX))
+ .text_size(px(APP_UI_THEME.foundation.typography.settings_row_text_px))
+ .font_weight(gpui::FontWeight::NORMAL)
+ .w_full()
+}
+
+fn account_form_text_area_input(input: &Entity<InputState>) -> impl IntoElement {
+ app_text_input(input, false)
+ .with_size(Size::Small)
.text_size(px(APP_UI_THEME.foundation.typography.settings_row_text_px))
.font_weight(gpui::FontWeight::NORMAL)
.w_full()
@@ -9257,8 +9268,10 @@ fn account_form_text_input(input: &Entity<InputState>) -> impl IntoElement {
fn account_profile_select_input(select: &Entity<AccountProfileSelectState>) -> impl IntoElement {
Select::new(select)
.with_size(Size::Small)
+ .h(px(ACCOUNT_FORM_CONTROL_HEIGHT_PX))
.text_size(px(APP_UI_THEME.foundation.typography.settings_row_text_px))
.font_weight(gpui::FontWeight::NORMAL)
+ .rounded(px(APP_UI_THEME.components.app_input_text.corner_radius_px))
.w_full()
}
@@ -9267,8 +9280,10 @@ fn account_farm_profile_select_input(
) -> impl IntoElement {
Select::new(select)
.with_size(Size::Small)
+ .h(px(ACCOUNT_FORM_CONTROL_HEIGHT_PX))
.text_size(px(APP_UI_THEME.foundation.typography.settings_row_text_px))
.font_weight(gpui::FontWeight::NORMAL)
+ .rounded(px(APP_UI_THEME.components.app_input_text.corner_radius_px))
.w_full()
}
@@ -9428,7 +9443,7 @@ fn account_farm_profile_text_area_field(
label_key: AppTextKey,
input: &Entity<InputState>,
) -> impl IntoElement {
- account_profile_labeled_control(label_key, account_form_text_input(input))
+ account_profile_labeled_control(label_key, account_form_text_area_input(input))
}
fn account_farm_profile_completeness_card() -> impl IntoElement {