Skip to content

Commit

Permalink
docs: fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcdostone committed Feb 3, 2025
1 parent 002558d commit 360b5a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions crates/tui/src/component/root_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::{

use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
use ratatui::{
layout::{Constraint, Direction, Layout, Margin, Rect},
widgets::Clear,
layout::{Constraint, Direction, Flex, Layout, Margin, Rect},
widgets::{Block, Clear, Paragraph},

Check failure on line 13 in crates/tui/src/component/root_component.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `Block`

Check failure on line 13 in crates/tui/src/component/root_component.rs

View workflow job for this annotation

GitHub Actions / Code coverage

unused import: `Block`
Frame,
};
use tokio::sync::{mpsc::UnboundedSender, watch::Receiver};
Expand Down Expand Up @@ -342,6 +342,14 @@ impl Component for RootComponent {
}

fn draw(&mut self, f: &mut Frame<'_>, rect: Rect, _: &State) -> Result<(), TuiError> {
if rect.width < 20 && rect.height < 4 {
let [area] = Layout::horizontal([Constraint::Length(5)])
.flex(Flex::Center)
.areas(rect);
let [area] = Layout::vertical([Constraint::Length(1)]).flex(Flex::Center).areas(area);
f.render_widget(Paragraph::new("For J"), area);
return Ok(());
}
let mut a = self.buffer_rx.clone();
let BufferAction::Count(count) = *a.borrow_and_update();
self.progress_bar.set_progress(count.1);
Expand Down
2 changes: 1 addition & 1 deletion docs/query-language/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ value contains "release"
```


5. Records where the `md5(key)` is equals to the user-provided parameter. A [search filter](./search-filter/README.md) must be implemented for this example.
5. Records where the `md5(key)` is equals to the user-provided parameter. A [search filter](../search-filter/README.md) must be implemented for this example.
```sql
from begin md5-key-equals-to("d131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f89")
```

0 comments on commit 360b5a7

Please sign in to comment.