From ce292ce9d39ab0692b42b843db8361dbf1b86e22 Mon Sep 17 00:00:00 2001 From: tapframe Date: Sun, 5 Oct 2025 20:28:04 +0530 Subject: [PATCH] UI changes --- src/components/metadata/CommentsSection.tsx | 86 ++++++++++++++------- 1 file changed, 56 insertions(+), 30 deletions(-) diff --git a/src/components/metadata/CommentsSection.tsx b/src/components/metadata/CommentsSection.tsx index f068771..c6e2fd6 100644 --- a/src/components/metadata/CommentsSection.tsx +++ b/src/components/metadata/CommentsSection.tsx @@ -169,7 +169,7 @@ const CompactCommentCard: React.FC<{ {shouldBlurContent ? '⚠️ This comment contains spoilers. Tap to reveal.' : truncatedComment} @@ -286,7 +286,7 @@ const ExpandedCommentBottomSheet: React.FC<{ } }} index={-1} - snapPoints={[200, '50%', '90%']} + snapPoints={[200, '50%', '70%']} enableDynamicSizing={false} keyboardBehavior="interactive" android_keyboardInputMode="adjustResize" @@ -316,7 +316,11 @@ const ExpandedCommentBottomSheet: React.FC<{ {/* User Info */} - + {username} {user.vip && ( @@ -355,16 +359,17 @@ const ExpandedCommentBottomSheet: React.FC<{ {/* Full Comment */} {shouldBlurModalContent ? ( - - ⚠️ This comment contains spoilers - + + + + Contains spoilers - - Reveal Spoilers - + + Reveal ) : ( @@ -660,7 +665,7 @@ export const CommentBottomSheet: React.FC<{ } }} index={sheetIndex} - snapPoints={[200, '50%', '90%']} + snapPoints={[200, '50%', '70%']} enableDynamicSizing={false} keyboardBehavior="interactive" android_keyboardInputMode="adjustResize" @@ -685,7 +690,11 @@ export const CommentBottomSheet: React.FC<{ {/* User Info */} - + {username} {user.vip && ( @@ -724,16 +733,17 @@ export const CommentBottomSheet: React.FC<{ {/* Full Comment */} {shouldBlurModalContent ? ( - - ⚠️ This comment contains spoilers - + + + + Contains spoilers - - Reveal Spoilers - + + Reveal ) : ( @@ -791,8 +801,9 @@ const styles = StyleSheet.create({ }, compactCard: { width: 280, - height: 160, + height: 170, padding: 12, + paddingBottom: 16, marginRight: 12, borderRadius: 12, borderWidth: 1, @@ -854,7 +865,7 @@ const styles = StyleSheet.create({ }, compactComment: { fontSize: 14, - lineHeight: 20, + lineHeight: 18, }, blurredContent: { opacity: 0.3, @@ -866,6 +877,8 @@ const styles = StyleSheet.create({ flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', + marginTop: 'auto', + paddingTop: 6, }, compactBadges: { flexDirection: 'row', @@ -1066,7 +1079,8 @@ const styles = StyleSheet.create({ modalUsername: { fontSize: 18, fontWeight: '600', - flex: 1, + flexShrink: 1, + marginRight: 8, }, modalDate: { fontSize: 12, @@ -1107,21 +1121,33 @@ const styles = StyleSheet.create({ }, spoilerContainer: { alignItems: 'center', - paddingVertical: 20, + paddingVertical: 16, }, - spoilerWarning: { - fontSize: 16, + spoilerIcon: { + width: 40, + height: 40, + borderRadius: 20, + alignItems: 'center', + justifyContent: 'center', + marginBottom: 10, + }, + spoilerTitle: { + fontSize: 14, fontWeight: '600', textAlign: 'center', - marginBottom: 16, + marginBottom: 12, }, revealButton: { - paddingHorizontal: 20, - paddingVertical: 12, - borderRadius: 8, + flexDirection: 'row', + alignItems: 'center', + gap: 8, + paddingHorizontal: 14, + paddingVertical: 8, + borderRadius: 999, + borderWidth: 1, }, revealButtonText: { - fontSize: 16, + fontSize: 14, fontWeight: '600', }, modalMeta: {