From c8628af6017b2e87a69a10d96654b3af57766740 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 23 Apr 2025 22:00:00 +0200 Subject: [PATCH] Put some space and borders around search results --- cli/component.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cli/component.cpp b/cli/component.cpp index ef93e87..ebd5dd3 100644 --- a/cli/component.cpp +++ b/cli/component.cpp @@ -120,16 +120,18 @@ namespace katja lines.push_back(line); } ftxui::FlexboxConfig config; - config.justify_content = ftxui::FlexboxConfig::JustifyContent::FlexStart; + config.justify_content = ftxui::FlexboxConfig::JustifyContent::SpaceAround; config.align_items = ftxui::FlexboxConfig::AlignItems::FlexStart; config.direction = ftxui::FlexboxConfig::Direction::Row; + config.wrap = ftxui::FlexboxConfig::Wrap::NoWrap; + config.SetGap(3, 0); return ftxui::vbox({ ftxui::flexbox({ this->search_input->Render(), ftxui::window(ftxui::text("Search in"), type_input->Render()) }, config), - ftxui::vbox(lines) + ftxui::vbox(lines) | ftxui::flex | ftxui::border }); }