mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 00:11:01 +00:00
Relay Lists: Further narrow the search field
This commit is contained in:
parent
3e49b69d65
commit
16fe93d606
@ -23,7 +23,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
super::relay_sort_combo(app, ui);
|
||||
btn_h_space!(ui);
|
||||
widgets::TextEdit::search(&app.theme, &app.assets, &mut app.relays.search)
|
||||
.desired_width(150.0)
|
||||
.desired_width(super::SEARCH_WIDTH)
|
||||
.show(ui);
|
||||
if widgets::Button::primary(&app.theme, "Add Relay")
|
||||
.show(ui)
|
||||
|
@ -19,7 +19,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
super::relay_sort_combo(app, ui);
|
||||
btn_h_space!(ui);
|
||||
widgets::TextEdit::search(&app.theme, &app.assets, &mut app.relays.search)
|
||||
.desired_width(150.0)
|
||||
.desired_width(super::SEARCH_WIDTH)
|
||||
.show(ui);
|
||||
if widgets::Button::primary(&app.theme, "Add Relay")
|
||||
.show(ui)
|
||||
|
@ -19,7 +19,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
super::relay_sort_combo(app, ui);
|
||||
btn_h_space!(ui);
|
||||
widgets::TextEdit::search(&app.theme, &app.assets, &mut app.relays.search)
|
||||
.desired_width(150.0)
|
||||
.desired_width(super::SEARCH_WIDTH)
|
||||
.show(ui);
|
||||
if widgets::Button::primary(&app.theme, "Add Relay")
|
||||
.show(ui)
|
||||
|
@ -15,6 +15,7 @@ mod coverage;
|
||||
mod known;
|
||||
mod mine;
|
||||
|
||||
pub const SEARCH_WIDTH: f32 = 80.0;
|
||||
pub const RELAY_URL_PREPOPULATE: &str = "wss://";
|
||||
|
||||
pub(super) struct RelayUi {
|
||||
|
Loading…
Reference in New Issue
Block a user