From f15684f7bcb1cc103f3bfc16f8adb50d05c3dac2 Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Sun, 31 May 2026 09:49:18 +0330 Subject: [PATCH] fix: keep doctor name on one line in hero section Removed
between name parts and added white-space:nowrap. Adjusted clamp min from 2.2rem to 1.6rem so it scales down on small screens without wrapping. Co-Authored-By: Claude Sonnet 4.6 --- DrSousan.Api/Pages/Index.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DrSousan.Api/Pages/Index.cshtml b/DrSousan.Api/Pages/Index.cshtml index 5701191..cc34bce 100644 --- a/DrSousan.Api/Pages/Index.cshtml +++ b/DrSousan.Api/Pages/Index.cshtml @@ -46,7 +46,7 @@ .hero-inner { max-width:1200px; margin:0 auto; padding:0 2rem; display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; } .hero-text { animation: fadeUp 0.9s ease both; } .hero-tag { display:inline-block; background:var(--gold-pale); color:var(--gold); font-size:0.78rem; font-weight:500; padding:0.35rem 1rem; border-radius:50px; margin-bottom:1.4rem; letter-spacing:0.05em; } - .hero-name { font-size:clamp(2.2rem,4vw,3.2rem); font-weight:700; line-height:1.3; color:var(--dark); margin-bottom:0.6rem; } + .hero-name { font-size:clamp(1.6rem,3.5vw,3.2rem); font-weight:700; line-height:1.3; color:var(--dark); margin-bottom:0.6rem; white-space:nowrap; } .hero-name span { color:var(--gold); } .hero-subtitle { font-size:1.05rem; color:var(--mid); font-weight:400; margin-bottom:1.8rem; line-height:1.9; } .hero-stats { display:flex; gap:2.5rem; margin-bottom:2.5rem; } @@ -229,7 +229,7 @@
@h.GetValueOrDefault("tag","پزشک عمومی و متخصص زیبایی پوست") -

@h.GetValueOrDefault("name_line1","دکتر") @h.GetValueOrDefault("name_line2","سوسن")
@h.GetValueOrDefault("name_line3","آل‌طه")

+

@h.GetValueOrDefault("name_line1","دکتر") @h.GetValueOrDefault("name_line2","سوسن") @h.GetValueOrDefault("name_line3","آل‌طه")

@h.GetValueOrDefault("subtitle","با بیش از یک دهه تجربه در حوزه‌ی زیبایی و مراقبت از پوست، زیبایی واقعی شما را با علم و هنر همراه می‌کنیم.")