intro page working properly well

This commit is contained in:
filipriec
2025-03-21 23:07:10 +01:00
parent 1b0aaa55c9
commit c592dfc7f5
6 changed files with 54 additions and 19 deletions

View File

@@ -5,6 +5,7 @@ pub mod status_line;
pub mod canvas;
pub mod sidebar;
pub mod background;
pub mod intro;
pub use command_line::render_command_line;
pub use form::*;
@@ -12,3 +13,4 @@ pub use status_line::render_status_line;
pub use canvas::*;
pub use sidebar::*;
pub use background::*;
pub use intro::*;

View File

@@ -4,6 +4,7 @@ use ratatui::{
style::Style,
text::{Line, Span},
widgets::{Block, BorderType, Borders, Paragraph},
prelude::Margin,
Frame,
};
use crate::config::colors::Theme;
@@ -51,7 +52,10 @@ impl IntroState {
let button_area = Layout::default()
.direction(Direction::Horizontal)
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)])
.split(chunks[1].inner(chunks[1]));
.split(chunks[1].inner(Margin {
horizontal: 1,
vertical: 1
}));
self.render_button(
f,