test tables

This commit is contained in:
2024-05-08 21:57:40 -04:00
parent c82ef2e7af
commit 6a5aecdc4d
4 changed files with 227 additions and 35 deletions

View File

@ -20,11 +20,17 @@ class cable {
this.brand = brand;
this.description = description;
this.short_description = short_description
? short_description
: description;
this.image = image
? `http://localhost${image}`
: DefaultPartImg;
? short_description
: description;
this.image = image ? `http://localhost${image}` : DefaultPartImg;
if (this.short_description != undefined) {
this.short_description = this.short_description.charAt(0).toUpperCase() + this.short_description.slice(1);
if (this.short_description.length > 100) {
this.short_description =
this.short_description.substring(0, 80) + "...";
}
}
}
returnDiv() {
@ -125,4 +131,3 @@ export default class BrowseComponent extends Component {
);
}
}