fix color bleeding (#723)

Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
nyx 2024-10-31 14:27:13 -04:00 committed by GitHub
parent a5fd25f6af
commit 0c8977192f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,8 @@ impl FloatContent for FloatingText {
.title_style(Style::default().reversed()) .title_style(Style::default().reversed())
.style(Style::default()); .style(Style::default());
// Draw the Block first frame.render_widget(Clear, area);
frame.render_widget(block.clone(), area); frame.render_widget(block.clone(), area);
// Calculate the inner area to ensure text is not drawn over the border // Calculate the inner area to ensure text is not drawn over the border
@ -253,9 +254,6 @@ impl FloatContent for FloatingText {
.block(Block::default()) .block(Block::default())
.highlight_style(Style::default().reversed()); .highlight_style(Style::default().reversed());
// Clear the text underneath the floats rendered area
frame.render_widget(Clear, inner_area);
// Render the list inside the bordered area // Render the list inside the bordered area
frame.render_widget(list, inner_area); frame.render_widget(list, inner_area);
} }