fix: alter the help box link underlining
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
use bollard::models::ContainerSummary;
|
||||
use core::fmt;
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use ratatui::widgets::{ListItem, ListState};
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
mod container_state;
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@ use crossterm::{
|
||||
execute,
|
||||
};
|
||||
use parking_lot::Mutex;
|
||||
use ratatui::layout::Rect;
|
||||
use tokio::{
|
||||
sync::mpsc::{Receiver, Sender},
|
||||
task::JoinHandle,
|
||||
};
|
||||
use ratatui::layout::Rect;
|
||||
|
||||
mod message;
|
||||
use crate::{
|
||||
|
||||
@@ -628,7 +628,6 @@ impl HelpInfo {
|
||||
|
||||
/// Generate the final lines, GitHub link etc, + metadata
|
||||
fn gen_final() -> Self {
|
||||
let top_bar = (0..REPO.chars().count()).map(|_|"▔").collect::<String>();
|
||||
let spans = [
|
||||
Self::empty_span(),
|
||||
Spans::from(vec![Self::black_span(
|
||||
@@ -636,9 +635,8 @@ impl HelpInfo {
|
||||
)]),
|
||||
Spans::from(vec![Span::styled(
|
||||
REPO.to_owned(),
|
||||
Style::default().fg(Color::White), // .add_modifier(Modifier::BOLD),
|
||||
Style::default().fg(Color::White).add_modifier(Modifier::UNDERLINED),
|
||||
)]),
|
||||
Spans::from(vec![Self::white_span(&top_bar)]),
|
||||
];
|
||||
let height = spans.len();
|
||||
let width = Self::calc_width(&spans);
|
||||
|
||||
+1
-1
@@ -1,8 +1,8 @@
|
||||
use ratatui::layout::{Constraint, Rect};
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
fmt,
|
||||
};
|
||||
use ratatui::layout::{Constraint, Rect};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::app_data::Header;
|
||||
|
||||
+5
-5
@@ -5,6 +5,11 @@ use crossterm::{
|
||||
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
|
||||
};
|
||||
use parking_lot::Mutex;
|
||||
use ratatui::{
|
||||
backend::{Backend, CrosstermBackend},
|
||||
layout::{Constraint, Direction, Layout},
|
||||
Frame, Terminal,
|
||||
};
|
||||
use std::{
|
||||
io::{self, Stdout, Write},
|
||||
sync::{atomic::Ordering, Arc},
|
||||
@@ -13,11 +18,6 @@ use std::{
|
||||
use std::{sync::atomic::AtomicBool, time::Instant};
|
||||
use tokio::sync::mpsc::Sender;
|
||||
use tracing::error;
|
||||
use ratatui::{
|
||||
backend::{Backend, CrosstermBackend},
|
||||
layout::{Constraint, Direction, Layout},
|
||||
Frame, Terminal,
|
||||
};
|
||||
|
||||
mod color_match;
|
||||
mod draw_blocks;
|
||||
|
||||
Reference in New Issue
Block a user