rework ui

This commit is contained in:
2026-06-06 01:01:09 +04:00
parent 9a385176cb
commit 5af0faa0ee
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -32,6 +32,7 @@ pub struct SecretInfo {
pub hosts: Vec<String>,
#[serde(rename = "neededForUsers")]
pub needed_for_users: bool,
pub sopskeys: Vec<String>,
pub keys: Vec<String>,
#[serde(default)]
pub home: bool,
+2 -2
View File
@@ -121,7 +121,7 @@ fn render_secret_detail(state: &App, area: Rect, buf: &mut Buffer) {
lines.push(Line::from(vec![
Span::styled(" Recipients: ", Style::default().fg(Color::DarkGray)),
Span::styled(
format!("{} age keys", secret.keys.len()),
format!("{} age keys", secret.sopskeys.len()),
Style::default().fg(Color::White),
),
]));
@@ -153,7 +153,7 @@ fn render_secret_detail(state: &App, area: Rect, buf: &mut Buffer) {
.fg(Color::DarkGray)
.add_modifier(Modifier::BOLD),
)));
for key in &secret.keys {
for key in &secret.sopskeys {
let truncated = if key.len() > 20 {
format!("{}...", &key[..20])
} else {