Skip to content

Commit 5f9490b

Browse files
committed
fix: arrow not showing on score and tok when sorting on tui because of width constraints.
1 parent f31c1f7 commit 5f9490b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

llmfit-core/src/fit.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,11 @@ pub fn rank_models_by_fit_opts_col(
754754
}
755755
}
756756
SortColumn::Provider => {
757-
let cmp = a.model.provider.to_lowercase().cmp(&b.model.provider.to_lowercase());
757+
let cmp = a
758+
.model
759+
.provider
760+
.to_lowercase()
761+
.cmp(&b.model.provider.to_lowercase());
758762
if cmp == std::cmp::Ordering::Equal {
759763
b.score
760764
.partial_cmp(&a.score)

llmfit-tui/src/tui_ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ fn draw_table(frame: &mut Frame, app: &mut App, area: Rect, tc: &ThemeColors) {
719719
Constraint::Min(20), // model name
720720
Constraint::Length(12), // provider
721721
Constraint::Length(8), // params
722-
Constraint::Length(6), // score
723-
Constraint::Length(6), // tok/s
722+
Constraint::Length(8), // score
723+
Constraint::Length(8), // tok/s
724724
Constraint::Length(10), // quant (AWQ-4bit, GPTQ-Int4, GPTQ-Int8)
725725
Constraint::Length(6), // disk
726726
Constraint::Length(7), // mode

0 commit comments

Comments
 (0)