Skip to content

Commit

Permalink
Sbom table: truncate name
Browse files Browse the repository at this point in the history
Signed-off-by: carlosthe19916 <[email protected]>
  • Loading branch information
carlosthe19916 committed Apr 4, 2024
1 parent e9bcb5f commit e8907fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spog/ui/crates/components/src/sbom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ impl PackageEntry {
impl TableEntryRenderer<Column> for PackageEntry {
fn render_cell(&self, context: CellContext<'_, Column>) -> Cell {
match context.column {
Column::Name => html!(
Column::Name => Cell::from(html!(
<Link<AppRoute>
target={AppRoute::Sbom(View::Content{id: self.package.id.clone()})}
>{ self.package_name() }</Link<AppRoute>>
)
.into(),
))
.text_modifier(TextModifier::Truncate),
Column::Supplier => html!(&self.package.supplier).into(),
Column::Created => date(self.package.created).into(),
Column::Download => html!(
Expand Down Expand Up @@ -141,12 +141,12 @@ pub fn sbom_result(props: &SbomResultProperties) -> Html {
yew::props!(TableColumnProperties<Column> {
index: Column::Name,
label: "Name",
width: ColumnWidth::Percent(15)
width: ColumnWidth::Percent(25)
}),
yew::props!(TableColumnProperties<Column> {
index: Column::Version,
label: "Version",
width: ColumnWidth::Percent(20)
width: ColumnWidth::Percent(15)
}),
yew::props!(TableColumnProperties<Column> {
index: Column::Supplier,
Expand Down

0 comments on commit e8907fd

Please sign in to comment.