diff --git a/src/model.rs b/src/model.rs index cef2b0d..4c44f12 100644 --- a/src/model.rs +++ b/src/model.rs @@ -4,8 +4,7 @@ use ratatui::{ widgets::{ScrollbarState, TableState}, }; use serde_json::Value; -use style::palette::tailwind; -use style::Color; +use style::{palette::tailwind, Color}; use crate::database::Database; diff --git a/src/ui.rs b/src/ui.rs index dc53f0f..ea424f1 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -1,10 +1,12 @@ -use crate::database::Database; -use crate::model::{Model, ViewState, ITEM_HEIGHT, MAX_TABLE_ITEMS}; -use crate::popup::Popup; -use ratatui::text::Text; +use crate::{ + database::Database, + model::{Model, ViewState, ITEM_HEIGHT, MAX_TABLE_ITEMS}, + popup::Popup, +}; use ratatui::{ layout::{Constraint, Layout, Margin, Rect}, style::{Modifier, Style, Stylize}, + text::Text, widgets::{ Block, BorderType, Cell, HighlightSpacing, Paragraph, Row, Scrollbar, ScrollbarOrientation, Table,