admin panel tiny improvement. STARTING OF ADMIN PANEL BUILDING
This commit is contained in:
@@ -7,7 +7,7 @@ use ratatui::{
|
|||||||
layout::{Alignment, Constraint, Direction, Layout, Rect},
|
layout::{Alignment, Constraint, Direction, Layout, Rect},
|
||||||
style::Style, // Added Modifier
|
style::Style, // Added Modifier
|
||||||
text::{Line, Span, Text},
|
text::{Line, Span, Text},
|
||||||
widgets::{Block, BorderType, Borders, List, ListItem, Paragraph}, // Removed ListState import here
|
widgets::{Block, BorderType, Borders, List, ListItem, Paragraph, Wrap},
|
||||||
Frame,
|
Frame,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -99,7 +99,9 @@ pub fn render_admin_panel(
|
|||||||
text.lines.push(Line::from(line));
|
text.lines.push(Line::from(line));
|
||||||
}
|
}
|
||||||
|
|
||||||
let details_widget = Paragraph::new(text).block(Block::default().title("Details"));
|
let details_widget = Paragraph::new(text)
|
||||||
|
.block(Block::default().title("Details"))
|
||||||
|
.wrap(Wrap { trim: true }); // Add wrapping
|
||||||
f.render_widget(details_widget, content_chunks[1]);
|
f.render_widget(details_widget, content_chunks[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user