diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 96e28b9..ecccb3b 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -13,11 +13,11 @@ android { applicationId = "com.memory.app" minSdk = 26 targetSdk = 35 - versionCode = 28 - versionName = "1.4.4" + versionCode = 30 + versionName = "1.4.6" buildConfigField("String", "API_BASE_URL", "\"https://x.amos.us.kg/api/\"") - buildConfigField("int", "VERSION_CODE", "28") + buildConfigField("int", "VERSION_CODE", "30") } signingConfigs { diff --git a/android/app/src/main/java/com/memory/app/ui/screen/PostDetailScreen.kt b/android/app/src/main/java/com/memory/app/ui/screen/PostDetailScreen.kt index 953a5e4..7d1c0eb 100644 --- a/android/app/src/main/java/com/memory/app/ui/screen/PostDetailScreen.kt +++ b/android/app/src/main/java/com/memory/app/ui/screen/PostDetailScreen.kt @@ -213,44 +213,46 @@ fun PostDetailScreen( onClick = { } ) } + } - Spacer(modifier = Modifier.height(16.dp)) - - // Stats Row - Row( - modifier = Modifier.fillMaxWidth(), - horizontalArrangement = Arrangement.SpaceBetween - ) { - Row(verticalAlignment = Alignment.CenterVertically) { - Text( - text = "${post.likeCount}", - fontWeight = FontWeight.Bold, - fontSize = 15.sp, - color = MaterialTheme.colorScheme.onSurface - ) - Text( - text = " 获赞", - fontSize = 15.sp, - color = MaterialTheme.colorScheme.onSurfaceVariant - ) - } - Row(verticalAlignment = Alignment.CenterVertically) { - Text( - text = "${comments.size}", - fontWeight = FontWeight.Bold, - fontSize = 15.sp, - color = MaterialTheme.colorScheme.onSurface - ) - Text( - text = " 评论", - fontSize = 15.sp, - color = MaterialTheme.colorScheme.onSurfaceVariant - ) - } + // Stats Row with dividers + HorizontalDivider(color = MaterialTheme.colorScheme.outlineVariant, thickness = 1.dp) + + Row( + modifier = Modifier + .fillMaxWidth() + .padding(horizontal = 20.dp, vertical = 12.dp), + horizontalArrangement = Arrangement.SpaceBetween + ) { + Row(verticalAlignment = Alignment.CenterVertically) { + Text( + text = "${post.likeCount}", + fontWeight = FontWeight.Bold, + fontSize = 15.sp, + color = MaterialTheme.colorScheme.onSurface + ) + Text( + text = " 获赞", + fontSize = 15.sp, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + } + Row(verticalAlignment = Alignment.CenterVertically) { + Text( + text = "${comments.size}", + fontWeight = FontWeight.Bold, + fontSize = 15.sp, + color = MaterialTheme.colorScheme.onSurface + ) + Text( + text = " 评论", + fontSize = 15.sp, + color = MaterialTheme.colorScheme.onSurfaceVariant + ) } } - HorizontalDivider(color = MaterialTheme.colorScheme.surfaceVariant, thickness = 8.dp) + HorizontalDivider(color = MaterialTheme.colorScheme.outlineVariant, thickness = 1.dp) } // Comments @@ -264,12 +266,18 @@ fun PostDetailScreen( if (comments.isEmpty()) { item { - Box( + Column( modifier = Modifier .fillMaxWidth() - .padding(32.dp), - contentAlignment = Alignment.Center + .padding(vertical = 48.dp), + horizontalAlignment = Alignment.CenterHorizontally ) { + // 沙发 + 落地灯图标 + Text( + text = "🛋️🪔", + fontSize = 48.sp + ) + Spacer(modifier = Modifier.height(12.dp)) Text( text = "还没有评论,快来抢沙发吧!", color = MaterialTheme.colorScheme.onSurfaceVariant, diff --git a/post-detail-redesign.html b/post-detail-redesign.html new file mode 100644 index 0000000..fb0a698 --- /dev/null +++ b/post-detail-redesign.html @@ -0,0 +1,547 @@ + + + + + + Memory - Post Detail Redesign + + + + + + + + +
+
方案 1: 带卡片媒体(如音乐)
+
+
+
+ +
+
帖子详情
+
+ +
+
+ +
+ + +
+ app功能更新:增加分享音乐功能 🎧 +
+ +
+
+ +
+ +
+
+
+
我们的明天
+
鹿晗
+
+
+ +
+
+ +
+
1 获赞
+
0 评论
+
+ +
+
🛋️
+
还没有评论,快来抢沙发吧!
+
+
+ +
+
+ +
+
发送
+
+
+
+ + +
+
方案 2: 带图片帖子
+
+
+
+ +
+
帖子详情
+
+ +
+
+ +
+ + +
+ 今天去海边散步,拍到了绝美的日落!夕阳的余晖洒在海面上,波光粼粼,真的很治愈。✨ +
+ +
+ sunset +
+ +
+
128 获赞
+
12 评论
+
+ + + + +
+
+ avatar +
+
+
小明
+
这也太美了吧!求原图!😍
+
+ 15分钟前 + 回复 +
+
+
+ +
+
+ avatar +
+
+
Sarah
+
羡慕可以住在海边的人~
+
+ 5分钟前 + 回复 +
+
+
+
+ +
+
+ +
+
发送
+
+
+
+ + +