style(tui): updating spacing for section text

This commit is contained in:
Orhun Parmaksız 2022-02-02 01:35:26 +03:00
parent 21b3aed659
commit 53c82999c0
No known key found for this signature in database
GPG key ID: F83424824B3E4B90

View file

@ -182,11 +182,11 @@ fn render_section_text<B: Backend>(frame: &mut Frame<'_, B>, rect: Rect, section
[
Constraint::Min(
rect.width
.checked_sub(text_width + 2)
.checked_sub(text_width + 3)
.unwrap_or(rect.height),
),
Constraint::Min(text_width),
Constraint::Min(1),
Constraint::Length(text_width),
Constraint::Length(2),
]
.as_ref(),
)