Added right alignment for NumberColumns and price

Removed seconds from date / times
Removed decimals from spool length and weight
This commit is contained in:
Thomas Zahari
2024-07-12 16:42:26 +02:00
parent 052bdb453d
commit 7e87751caf
3 changed files with 13 additions and 7 deletions

View File

@@ -260,6 +260,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
...commonProps,
id: "price",
i18ncat: "filament",
align: 'right',
width: 80,
render: (_, obj: IFilamentCollapsed) => {
return obj.price?.toLocaleString(undefined, {
@@ -291,7 +292,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
id: "weight",
i18ncat: "filament",
unit: "g",
maxDecimals: 1,
maxDecimals: 0,
width: 100,
}),
NumberColumn({
@@ -299,7 +300,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
id: "spool_weight",
i18ncat: "filament",
unit: "g",
maxDecimals: 1,
maxDecimals: 0,
width: 100,
}),
FilteredQueryColumn({