From c67630936f60650f182e5671591278fb971539fd Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Sat, 10 Aug 2024 19:12:44 +0900 Subject: [PATCH] search style --- src/view/screens/Search/Search.tsx | 2 +- src/view/shell/desktop/Search.tsx | 104 +++++++++++++---------------- 2 files changed, 47 insertions(+), 59 deletions(-) diff --git a/src/view/screens/Search/Search.tsx b/src/view/screens/Search/Search.tsx index 4516179e75..737e4c5c35 100644 --- a/src/view/screens/Search/Search.tsx +++ b/src/view/screens/Search/Search.tsx @@ -783,7 +783,7 @@ let SearchInputBox = ({ }}> - - - - {query ? ( - - - - Cancel - - - - ) : undefined} - + + + {query ? ( + + + + ) : undefined} {query !== '' && isActive && moderationOpts && ( @@ -263,31 +262,20 @@ const styles = StyleSheet.create({ width: 300, }, search: { - paddingHorizontal: 16, - paddingVertical: 2, - width: 300, - borderRadius: 20, - }, - inputContainer: { + flex: 1, flexDirection: 'row', + alignItems: 'center', + borderRadius: 30, + paddingHorizontal: 12, + paddingVertical: 8, }, iconWrapper: { - position: 'relative', - top: 2, - paddingVertical: 7, - marginRight: 8, + marginRight: 6, + alignSelf: 'center', }, input: { flex: 1, - fontSize: 18, - width: '100%', - paddingTop: 7, - paddingBottom: 7, - }, - cancelBtn: { - paddingRight: 4, - paddingLeft: 10, - paddingVertical: 7, + fontSize: 17, }, resultsContainer: { marginTop: 10,