nit: minor UI patch; add missing comments
This commit is contained in:
parent
6f901e5203
commit
5b7619f000
|
|
@ -126,7 +126,7 @@ fun ModelSelectionScreen(
|
|||
) {
|
||||
if (queryResults.isEmpty()) {
|
||||
if (searchQuery.isNotBlank()) {
|
||||
// Show "no results" message
|
||||
// If no results under current query, show "no results" message
|
||||
EmptySearchResultsView(
|
||||
onClearSearch = {
|
||||
textFieldState.clearText()
|
||||
|
|
@ -136,7 +136,7 @@ fun ModelSelectionScreen(
|
|||
}
|
||||
} else {
|
||||
LazyColumn(
|
||||
Modifier.fillMaxSize(),
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||
contentPadding = PaddingValues(vertical = 12.dp, horizontal = 16.dp),
|
||||
) {
|
||||
|
|
@ -164,8 +164,10 @@ fun ModelSelectionScreen(
|
|||
}
|
||||
} else {
|
||||
if (filteredModels.isEmpty()) {
|
||||
// Empty model prompt
|
||||
EmptyModelsView(activeFiltersCount, onManageModelsClicked)
|
||||
} else {
|
||||
// Model cards
|
||||
LazyColumn(
|
||||
Modifier.fillMaxSize(), // .padding(horizontal = 16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ fun ModelsManagementScreen(
|
|||
|
||||
Box(modifier = Modifier.fillMaxSize()) {
|
||||
if (filteredModels.isEmpty()) {
|
||||
// Import model prompt
|
||||
val message = when (activeFiltersCount) {
|
||||
0 -> "Tap the \"+\" button to import a model!"
|
||||
1 -> "No models match the selected filter"
|
||||
|
|
@ -121,10 +122,9 @@ fun ModelsManagementScreen(
|
|||
} else {
|
||||
// Model cards
|
||||
LazyColumn(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(horizontal = 16.dp),
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||
contentPadding = PaddingValues(vertical = 12.dp, horizontal = 16.dp),
|
||||
) {
|
||||
items(items = filteredModels, key = { it.id }) { model ->
|
||||
val isSelected =
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class ConversationViewModel @Inject constructor(
|
|||
// UI state: Input text field
|
||||
val inputFieldState = TextFieldState()
|
||||
|
||||
// Token generation job
|
||||
// Ongoing coroutine jobs
|
||||
private var tokenCollectionJob: Job? = null
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue