From 72790ac9a3acfc4c69637dc2c67292cb9c313679 Mon Sep 17 00:00:00 2001 From: fede Date: Wed, 1 Jul 2026 01:07:43 -0300 Subject: [PATCH] fix(UI): un par de arreglos en la presentacion --- back/models/repuesto.go | 2 +- front/src/routes/layout.css | 2 +- front/src/routes/repuestos/+page.svelte | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/back/models/repuesto.go b/back/models/repuesto.go index c441320..21cbb3c 100644 --- a/back/models/repuesto.go +++ b/back/models/repuesto.go @@ -13,7 +13,7 @@ type Repuesto struct { Nombre string `gorm:"type:varchar(50);not null" json:"nombre" binding:"required"` Precio float64 `gorm:"not null;type:decimal(10,2)" json:"precio" binding:"required"` StockMinimo int64 `gorm:"not null;type:bigint" json:"stockMinimo" binding:"required"` - Descripcion string `gorm:"uniqueIndex;not null;type:varchar(70)" json:"razon" binding:"required"` + Descripcion string `gorm:"uniqueIndex;not null;type:varchar(70)" json:"descripcion" binding:"required"` MarcaID string `gorm:"type:varchar(3);index" json:"marcaId" binding:"required"` Aliases datatypes.JSONSlice[string] `gorm:"type:json" json:"aliases,omitempty"` Stocks []Stock `gorm:"foreignKey:RepuestoID" json:"stocks,omitempty"` diff --git a/front/src/routes/layout.css b/front/src/routes/layout.css index 516e4f7..a1c5a2b 100644 --- a/front/src/routes/layout.css +++ b/front/src/routes/layout.css @@ -1,7 +1,7 @@ @import 'tailwindcss'; .page-container { padding: 6rem 0 4rem; - max-width: 1200px; + max-width: 90%; margin: 0 auto; } diff --git a/front/src/routes/repuestos/+page.svelte b/front/src/routes/repuestos/+page.svelte index abefccf..1eb9882 100644 --- a/front/src/routes/repuestos/+page.svelte +++ b/front/src/routes/repuestos/+page.svelte @@ -30,8 +30,9 @@ const headers = [ { key: 'id', value: 'ID' }, { key: 'nombre', value: 'Nombre' }, - { key: 'alias', value: 'Alias' }, - { key: 'descripcion', value: 'Descripción' } + { key: 'descripcion', value: 'Descripción' }, + { key: 'precio', value: 'Precio' }, + { key: 'marcaId', value: 'Marca' } ]; @@ -70,6 +71,7 @@ +