diff --git a/api/src/models/User.ts b/api/src/models/User.ts index cae47d6b7..ce417621d 100644 --- a/api/src/models/User.ts +++ b/api/src/models/User.ts @@ -75,7 +75,6 @@ const userSchema = new Schema( }, bio: { type: String, - maxlength: 100, trim: true, }, location: { diff --git a/backend/src/assets/css/car-list.css b/backend/src/assets/css/car-list.css index f810b41bd..f4a16299f 100644 --- a/backend/src/assets/css/car-list.css +++ b/backend/src/assets/css/car-list.css @@ -34,7 +34,7 @@ section.car-list .empty-list { color: #333; font-size: 12px; margin: 0 1px 10px; - height: 730px; + min-height: 730px; padding: 15px; } @@ -50,7 +50,7 @@ section.car-list .empty-list { font-weight: 700; text-size-adjust: none; line-height: 1.3em; - word-break: break-all; + word-break: break-word; display: inline; font-size: 2em; font-weight: 700; @@ -59,7 +59,7 @@ section.car-list .empty-list { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; - word-break: break-all; + word-break: break-word; overflow: hidden; text-overflow: ellipsis; } @@ -108,7 +108,7 @@ section.car-list .empty-list { line-height: 1em; white-space: nowrap; margin-left: 5px; - word-break: break-all; + word-break: break-word; overflow: hidden; text-overflow: ellipsis; width: 180px; @@ -231,7 +231,7 @@ section.car-list .empty-list { color: #333; font-size: 12px; margin-bottom: 10px; - height: 430px; + min-height: 430px; width: 800px; } @@ -246,7 +246,7 @@ section.car-list .empty-list { font-weight: 700; text-size-adjust: none; line-height: 1.3em; - word-break: break-all; + word-break: break-word; display: inline; font-size: 2em; font-weight: 700; @@ -255,7 +255,7 @@ section.car-list .empty-list { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; - word-break: break-all; + word-break: break-word; overflow: hidden; text-overflow: ellipsis; } @@ -309,7 +309,7 @@ section.car-list .empty-list { line-height: 1em; white-space: nowrap; margin-left: 5px; - word-break: break-all; + word-break: break-word; overflow: hidden; text-overflow: ellipsis; width: 100px; diff --git a/backend/src/assets/css/supplier.css b/backend/src/assets/css/supplier.css index 8c7b770ba..c1e74ea2c 100644 --- a/backend/src/assets/css/supplier.css +++ b/backend/src/assets/css/supplier.css @@ -16,13 +16,17 @@ div.supplier { font-weight: 400; margin-top: 10px; color: #676767; + word-wrap: break-word; } .supplier div.col-1 .supplier-bio-link { - display: flex; - flex-direction: row; - justify-content: center; - + overflow: hidden; + word-break: break-word; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + text-align: center; + padding: 0 10px; } .supplier div.col-1 .supplier-actions { @@ -68,10 +72,6 @@ div.supplier { justify-content: center; } - .supplier div.col-1 .car-count { - display: none; - } - .supplier div.col-2 { display: flex; flex-direction: column; diff --git a/backend/src/lang/common.ts b/backend/src/lang/common.ts index a4e145934..e015eb8b6 100644 --- a/backend/src/lang/common.ts +++ b/backend/src/lang/common.ts @@ -60,6 +60,7 @@ const strings = new LocalizedStrings({ SEND_MESSAGE: 'Envoyer un message', VERIFIED: 'Compte vérifié', CAR: 'voiture', + CARS: 'voitures', RESEND_ACTIVATION_LINK: "Renvoyer le lien d'activation du compte", ACTIVATION_EMAIL_SENT: "E-mail d'activation envoyé.", EMAIL_NOT_VALID: 'E-mail non valide', @@ -135,6 +136,7 @@ const strings = new LocalizedStrings({ SEND_MESSAGE: 'Send a message', VERIFIED: 'Verified account', CAR: 'car', + CARS: 'cars', RESEND_ACTIVATION_LINK: 'Resend account activation link', ACTIVATION_EMAIL_SENT: 'Activation email sent.', EMAIL_NOT_VALID: 'Invalid email address', diff --git a/backend/src/pages/Cars.tsx b/backend/src/pages/Cars.tsx index e2e484e0f..04c896b3b 100644 --- a/backend/src/pages/Cars.tsx +++ b/backend/src/pages/Cars.tsx @@ -96,7 +96,7 @@ const Cars = () => { {strings.NEW_CAR} - {rowCount > 0 && 1 ? 's' : ''}`} className="car-count" />} + {rowCount > 0 && 1 ? commonStrings.CARS : commonStrings.CAR}`} className="car-count" />} diff --git a/backend/src/pages/Supplier.tsx b/backend/src/pages/Supplier.tsx index 3aa6485a8..7ab56a88d 100644 --- a/backend/src/pages/Supplier.tsx +++ b/backend/src/pages/Supplier.tsx @@ -201,7 +201,7 @@ const Supplier = () => { )} - {rowCount > 0 && 1 ? 's' : ''}`} className="car-count" />} + {rowCount > 0 && 1 ? commonStrings.CARS : commonStrings.CAR}`} className="car-count" />}