mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 02:20:48 +08:00
bin: Fix search widget margins
This commit is contained in:
@@ -253,6 +253,12 @@ impl View for Browser {
|
||||
if props.show_search {
|
||||
let [table_area, search_area] =
|
||||
Layout::vertical([Constraint::Min(1), Constraint::Length(2)]).areas(render.area);
|
||||
let [_, search_area, _] = Layout::horizontal([
|
||||
Constraint::Length(1),
|
||||
Constraint::Min(1),
|
||||
Constraint::Length(1),
|
||||
])
|
||||
.areas(search_area);
|
||||
|
||||
self.notifications
|
||||
.render(RenderProps::from(table_area), frame);
|
||||
|
||||
@@ -270,6 +270,12 @@ impl View for Browser {
|
||||
if props.show_search {
|
||||
let [table_area, search_area] =
|
||||
Layout::vertical([Constraint::Min(1), Constraint::Length(2)]).areas(render.area);
|
||||
let [_, search_area, _] = Layout::horizontal([
|
||||
Constraint::Length(1),
|
||||
Constraint::Min(1),
|
||||
Constraint::Length(1),
|
||||
])
|
||||
.areas(search_area);
|
||||
|
||||
self.issues.render(RenderProps::from(table_area), frame);
|
||||
self.search
|
||||
|
||||
@@ -284,6 +284,12 @@ impl View for Browser {
|
||||
if props.show_search {
|
||||
let [table_area, search_area] =
|
||||
Layout::vertical([Constraint::Min(1), Constraint::Length(2)]).areas(render.area);
|
||||
let [_, search_area, _] = Layout::horizontal([
|
||||
Constraint::Length(1),
|
||||
Constraint::Min(1),
|
||||
Constraint::Length(1),
|
||||
])
|
||||
.areas(search_area);
|
||||
|
||||
self.patches.render(RenderProps::from(table_area), frame);
|
||||
self.search
|
||||
|
||||
Reference in New Issue
Block a user