Splits the main layout into left and right panes. The layout uses a 30/70 split for optimal content display.
(&self, area: Rect)
| 296 | /// |
| 297 | /// The layout uses a 30/70 split for optimal content display. |
| 298 | fn split_layout(&self, area: Rect) -> (Rect, Rect) { |
| 299 | let chunks = Layout::default() |
| 300 | .direction(Direction::Horizontal) |
| 301 | .constraints([Constraint::Percentage(30), Constraint::Percentage(70)]) |
| 302 | .split(area); |
| 303 | (chunks[0], chunks[1]) |
| 304 | } |
| 305 | |
| 306 | /// Draws the paper list with its help bar. |
| 307 | /// |