Fix: adjust content text field height to display 5 lines fully in merge screen

This commit is contained in:
2026-03-06 23:32:15 +08:00
parent df063dc38e
commit 97c701e691

View File

@@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.GridCells
@@ -371,7 +372,7 @@ fun MergeScreen(
}, },
label = { Text("内容最多5行") }, label = { Text("内容最多5行") },
modifier = Modifier.fillMaxWidth(), modifier = Modifier.fillMaxWidth(),
minLines = 2, minLines = 5,
maxLines = 5 maxLines = 5
) )
} }