remove details in TagList; change ServiceSwitcher height
This commit is contained in:
parent
b59c5f4ead
commit
987606d264
@ -70,11 +70,6 @@ impl Tag {
|
|||||||
for image in self.details.iter().skip(1) {
|
for image in self.details.iter().skip(1) {
|
||||||
arch.push_str(&format!(", {}", image));
|
arch.push_str(&format!(", {}", image));
|
||||||
}
|
}
|
||||||
let arch = if !arch.is_empty() {
|
|
||||||
format!(" [{}]", arch)
|
|
||||||
} else {
|
|
||||||
String::new()
|
|
||||||
};
|
|
||||||
|
|
||||||
let dif = match &self.last_updated {
|
let dif = match &self.last_updated {
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
@ -87,7 +82,7 @@ impl Tag {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if dif.is_empty() {}
|
if dif.is_empty() {}
|
||||||
format!("{}{}{}", self.name, dif, arch)
|
format!("{}{}", self.name, dif)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_details(&self) -> &Vec<TagDetails> {
|
pub fn get_details(&self) -> &Vec<TagDetails> {
|
||||||
|
@ -92,7 +92,7 @@ impl Ui {
|
|||||||
.direction(Direction::Vertical)
|
.direction(Direction::Vertical)
|
||||||
.constraints(
|
.constraints(
|
||||||
[
|
[
|
||||||
Constraint::Min(9),
|
Constraint::Length(10),
|
||||||
Constraint::Length(3),
|
Constraint::Length(3),
|
||||||
Constraint::Min(7),
|
Constraint::Min(7),
|
||||||
Constraint::Length(2),
|
Constraint::Length(2),
|
||||||
|
Loading…
Reference in New Issue
Block a user