From 2eb564696ea1cf2a44329956461e231c4ce30a04 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 24 Jun 2026 19:19:33 +0800 Subject: [PATCH] fix: banner has ui problem in small screen (#37879) --- .../explore/banner/__tests__/banner-item.spec.tsx | 4 ++-- web/app/components/explore/banner/banner-item.tsx | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/web/app/components/explore/banner/__tests__/banner-item.spec.tsx b/web/app/components/explore/banner/__tests__/banner-item.spec.tsx index f2b38ab0b94..721c24c95c7 100644 --- a/web/app/components/explore/banner/__tests__/banner-item.spec.tsx +++ b/web/app/components/explore/banner/__tests__/banner-item.spec.tsx @@ -346,7 +346,7 @@ describe('BannerItem', () => { expect(wrapper).toHaveClass('rounded-2xl') }) - it('keeps a fixed height even when text content is empty', () => { + it('keeps the desktop height even when text content is empty', () => { const banner = createMockBanner({ content: { 'category': '', @@ -359,7 +359,7 @@ describe('BannerItem', () => { const { container } = renderBannerItem(banner) const wrapper = container.firstChild as HTMLElement - expect(wrapper).toHaveClass('h-[184px]') + expect(wrapper).toHaveClass('xl:h-[184px]') }) }) }) diff --git a/web/app/components/explore/banner/banner-item.tsx b/web/app/components/explore/banner/banner-item.tsx index c4dbfa39119..e2f64b6a5d4 100644 --- a/web/app/components/explore/banner/banner-item.tsx +++ b/web/app/components/explore/banner/banner-item.tsx @@ -130,7 +130,7 @@ export function BannerItem({ return (
@@ -140,7 +140,7 @@ export function BannerItem({

-
+
@@ -174,7 +174,7 @@ export function BannerItem({
-
+
{/* Slide navigation indicators */}
{indicatorItems.map(({ id, index }) => ( @@ -196,13 +196,13 @@ export function BannerItem({
-
+
{title}