fix(shop): unify responsive H1 and strip nested H1 tag in catalog title
Deploy Canina / deploy (push) Successful in 2m10s
Deploy Canina / deploy (push) Successful in 2m10s
This commit is contained in:
1 parent
ea4d33b6bb
commit
0d8125bd37
1 file changed
+6
-14
@@ -759,16 +759,18 @@ export default function ArchivePage({
|
||||
|
||||
{/* Main Content */}
|
||||
<main className="flex-1 relative">
|
||||
{/* Desktop Top Title & Search / Sort Row */}
|
||||
<div className="hidden lg:flex flex-col sm:flex-row items-center justify-between mb-6 gap-4">
|
||||
{/* Semantic Single H1 across breakpoints */}
|
||||
<div className="flex flex-col lg:flex-row items-start lg:items-center justify-between mb-2 lg:mb-6 gap-2 lg:gap-4">
|
||||
<h1
|
||||
className="text-3xl font-black text-medical-gray-900"
|
||||
className="text-2xl lg:text-3xl font-black text-medical-gray-900"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: getText('shop_catalog_title', 'کاتالوگ و فروشگاه مکملهای دارویی <span class="text-canina-blue">کنینا</span>')
|
||||
.replace(/^\s*<h1[^>]*>/i, '')
|
||||
.replace(/<\/h1>\s*$/i, '')
|
||||
}}
|
||||
/>
|
||||
|
||||
<div className="flex items-center gap-3 w-auto">
|
||||
<div className="hidden lg:flex items-center gap-3 w-auto">
|
||||
{/* Sort Dropdown */}
|
||||
<div className="flex items-center gap-2 bg-white border border-medical-gray-200 rounded-2xl px-3 py-2 text-xs font-bold shadow-xs">
|
||||
<span className="text-medical-gray-400 whitespace-nowrap">مرتبسازی:</span>
|
||||
@@ -805,16 +807,6 @@ export default function ArchivePage({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Title */}
|
||||
<div className="lg:hidden mb-2">
|
||||
<h1
|
||||
className="text-2xl font-black text-medical-gray-900"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: getText('shop_catalog_title', 'کاتالوگ و فروشگاه مکملهای دارویی <span class="text-canina-blue">کنینا</span>')
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Mobile Controls: Horizontal Sliding Filters & View Toggle Row */}
|
||||
<div className="lg:hidden flex flex-col gap-2 mb-2">
|
||||
{/* Search Bar on Mobile */}
|
||||
|
||||
Reference in new issue
Block a user