Fixing footer
This commit is contained in:
parent
063775425a
commit
44a1c2055e
2 changed files with 5 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ impl App {
|
||||||
.constraints([
|
.constraints([
|
||||||
Constraint::Length(3),
|
Constraint::Length(3),
|
||||||
Constraint::Min(1),
|
Constraint::Min(1),
|
||||||
Constraint::Length(1),
|
Constraint::Length(3),
|
||||||
])
|
])
|
||||||
.split(area);
|
.split(area);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,11 +14,13 @@ pub fn render_footer(frame: &mut Frame, area: Rect) {
|
||||||
|
|
||||||
let footer = Paragraph::new(Span::styled(
|
let footer = Paragraph::new(Span::styled(
|
||||||
datatime_str,
|
datatime_str,
|
||||||
Style::default().fg(Color::Gray).add_modifier(Modifier::DIM),
|
Style::default()
|
||||||
|
.fg(Color::Gray)
|
||||||
|
.add_modifier(Modifier::BOLD),
|
||||||
))
|
))
|
||||||
.block(
|
.block(
|
||||||
Block::default()
|
Block::default()
|
||||||
.borders(Borders::TOP)
|
.borders(Borders::ALL)
|
||||||
.border_style(Style::default().fg(Color::Blue)),
|
.border_style(Style::default().fg(Color::Blue)),
|
||||||
)
|
)
|
||||||
.alignment(Alignment::Center);
|
.alignment(Alignment::Center);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue