fix all places of single line textinput

This commit is contained in:
extrawurst 2024-02-15 21:47:03 +01:00
parent 84d855d242
commit 89ce540653
6 changed files with 12 additions and 6 deletions

View File

@ -104,7 +104,8 @@ impl CreateBranchComponent {
&strings::create_branch_popup_title(&env.key_config),
&strings::create_branch_popup_msg(&env.key_config),
true,
),
)
.with_input_type(super::InputType::Singleline),
theme: env.theme.clone(),
key_config: env.key_config.clone(),
repo: env.repo.clone(),

View File

@ -42,7 +42,8 @@ impl FuzzyFindPopup {
///
pub fn new(env: &Environment) -> Self {
let mut find_text =
TextInputComponent::new(env, "", "start typing..", false);
TextInputComponent::new(env, "", "start typing..", false)
.with_input_type(super::InputType::Singleline);
find_text.embed();
Self {

View File

@ -58,7 +58,8 @@ impl LogSearchPopupComponent {
///
pub fn new(env: &Environment) -> Self {
let mut find_text =
TextInputComponent::new(env, "", "search text", false);
TextInputComponent::new(env, "", "search text", false)
.with_input_type(super::InputType::Singleline);
find_text.embed();
find_text.enabled(true);

View File

@ -98,7 +98,8 @@ impl RenameBranchComponent {
&strings::rename_branch_popup_title(&env.key_config),
&strings::rename_branch_popup_msg(&env.key_config),
true,
),
)
.with_input_type(super::InputType::Singleline),
branch_ref: None,
key_config: env.key_config.clone(),
}

View File

@ -135,7 +135,8 @@ impl StashMsgComponent {
&strings::stash_popup_title(&env.key_config),
&strings::stash_popup_msg(&env.key_config),
true,
),
)
.with_input_type(super::InputType::Singleline),
key_config: env.key_config.clone(),
repo: env.repo.clone(),
}

View File

@ -134,7 +134,8 @@ impl TagCommitComponent {
&strings::tag_popup_name_title(),
&strings::tag_popup_name_msg(),
true,
),
)
.with_input_type(super::InputType::Singleline),
commit_id: None,
key_config: env.key_config.clone(),
repo: env.repo.clone(),