diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 7b6b41e..058d4ad 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -522,33 +522,94 @@ const SearchOverlay = memo(function SearchOverlay({ isOpen, }, [onClose, onSearch]) if (!isOpen) return null + + const searchHeight = 48 + const closeSize = 48 + const skewOffset = 8 + const padding = 2 + const searchWidth = screenWidth - 40 - 8 - closeSize + return ( - - - + {/* 搜索输入平行四边形 */} + + + {/* 白色平行四边形主体 */} + + {/* 黑色描边 */} + + {/* 右侧 + 底部硬阴影 */} + + + + + + + - - + + {/* 关闭按钮平行四边形 */} + + + {/* 黄色平行四边形主体 */} + + {/* 黑色描边 */} + + {/* 右侧 + 底部硬阴影 */} + + + + + + )