Skip to content

Commit

Permalink
Fix wallet search input field, add placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Oct 18, 2024
1 parent 744d90f commit 3a8634d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
}

#qrcode-view__logo-container {
width: 75;
height: 75;
width: 65;
height: 65;
padding: 6;
background-color: white;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@
.modal--landscape .wallet-search-view {
align-self: center;
max-width: 360;
}

#wallet-search-view__left-slot {
flex-grow: 1;
}
7 changes: 7 additions & 0 deletions src/Reown.AppKit.Unity/Runtime/Components/TextInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,12 @@ public TextInput()
container
);
}

public void SetPlaceholder(string placeholder)
{
#if UNITY_6000_0_OR_NEWER
_textField.textEdition.placeholder = placeholder;
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public WalletSearchView(string visualTreePath)
vectorImage = Resources.Load<VectorImage>("Reown/AppKit/Icons/icon_medium_magnifier")
});
searchInput.RegisterCallback<ChangeEvent<string>>(evt => SearchInputValueChanged?.Invoke(evt.newValue));
searchInput.SetPlaceholder("Search wallet");

// --- ScrollView
scrollView = this.Q<ScrollView>();
Expand Down

0 comments on commit 3a8634d

Please sign in to comment.