sidebar working

This commit is contained in:
filipriec
2025-03-21 16:19:45 +01:00
parent ff5e0908ea
commit 30a31e8528
2 changed files with 3 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
// src/components/handlers/sidebar.rs
use ratatui::{
widgets::{Block, Borders, List, ListItem},
widgets::{Block, List, ListItem},
layout::Rect,
style::Style,
text::Text,
@@ -10,8 +10,6 @@ use crate::config::colors::Theme;
pub fn render_sidebar(f: &mut Frame, area: Rect, theme: &Theme) {
let sidebar_block = Block::default()
.borders(Borders::RIGHT)
.border_style(Style::default().fg(theme.border))
.style(Style::default().bg(theme.bg));
let items = vec![

View File

@@ -38,7 +38,7 @@ pub fn render_ui(
let chunks = Layout::default()
.direction(Direction::Horizontal)
.constraints([
Constraint::Min(10), // Sidebar minimum width
Constraint::Length(16), // Fixed sidebar width
Constraint::Fill(1), // Remaining space for form/preview
])
.split(main_content_area);