Fix: boundary fix in help/dict views
Some checks failed
Deploy Website / deploy (push) Failing after 31s

This commit is contained in:
2026-02-25 23:29:11 +01:00
parent e956346ae9
commit 7622e3d14c
5 changed files with 11 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
use std::cell::RefCell;
use std::cell::{Cell, RefCell};
use std::time::{Duration, Instant};
use cagire_markdown::ParsedMarkdown;
@@ -57,6 +57,8 @@ pub struct UiState {
pub dict_scrolls: Vec<usize>,
pub dict_search_query: String,
pub dict_search_active: bool,
pub help_max_scroll: Cell<usize>,
pub dict_max_scroll: Cell<usize>,
pub help_collapsed: Vec<bool>,
pub help_on_section: Option<usize>,
pub dict_collapsed: Vec<bool>,
@@ -107,6 +109,8 @@ impl Default for UiState {
dict_scrolls: vec![0; crate::model::categories::category_count()],
dict_search_query: String::new(),
dict_search_active: false,
help_max_scroll: Cell::new(usize::MAX),
dict_max_scroll: Cell::new(usize::MAX),
help_collapsed: vec![false; crate::model::docs::section_count()],
help_on_section: None,
dict_collapsed: vec![false; crate::model::categories::section_count()],