better fractioning of the software
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// src/client/components/form.rs
|
||||
use ratatui::{
|
||||
widgets::{Paragraph, Block, Borders},
|
||||
layout::{Layout, Constraint, Direction, Rect, Margin},
|
||||
layout::{Layout, Constraint, Direction, Rect, Margin, Position},
|
||||
style::Style,
|
||||
text::{Line, Span},
|
||||
Frame,
|
||||
@@ -81,7 +81,7 @@ pub fn render_form(
|
||||
if i == *current_field {
|
||||
let cursor_x = input_area.x + input.len() as u16;
|
||||
let cursor_y = input_area.y + i as u16;
|
||||
f.set_cursor(cursor_x, cursor_y);
|
||||
f.set_cursor_position(Position::new(cursor_x, cursor_y));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,3 +2,7 @@
|
||||
pub mod form;
|
||||
pub mod preview_card;
|
||||
pub mod command_line;
|
||||
|
||||
pub use command_line::render_command_line;
|
||||
pub use form::render_form;
|
||||
pub use preview_card::render_preview_card;
|
||||
|
||||
Reference in New Issue
Block a user