mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
This commit is contained in:
parent
602879da5f
commit
2381bd6c9b
|
@ -7,7 +7,6 @@ import androidx.compose.foundation.layout.Box
|
|||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.defaultMinSize
|
||||
import androidx.compose.foundation.layout.fillMaxHeight
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
|
@ -344,7 +343,6 @@ fun AppItemPage(
|
|||
|
||||
showGroupItem?.let { showGroupItemVal ->
|
||||
AlertDialog(
|
||||
modifier = Modifier.defaultMinSize(300.dp),
|
||||
onDismissRequest = { setShowGroupItem(null) },
|
||||
title = {
|
||||
Text(text = "规则组详情")
|
||||
|
@ -352,8 +350,10 @@ fun AppItemPage(
|
|||
text = {
|
||||
Column {
|
||||
Text(text = showGroupItemVal.name)
|
||||
Spacer(modifier = Modifier.height(10.dp))
|
||||
Text(text = showGroupItemVal.desc ?: "")
|
||||
if (showGroupItemVal.desc != null) {
|
||||
Spacer(modifier = Modifier.height(10.dp))
|
||||
Text(text = showGroupItemVal.desc)
|
||||
}
|
||||
}
|
||||
},
|
||||
confirmButton = {
|
||||
|
@ -371,7 +371,15 @@ fun AppItemPage(
|
|||
Text(text = "查看图片")
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = throttle {
|
||||
setShowGroupItem(null)
|
||||
}) {
|
||||
Text(text = "关闭")
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
if (editGroupRaw != null && subsItem != null) {
|
||||
|
|
|
@ -484,6 +484,12 @@ fun GlobalRulePage(subsItemId: Long, focusGroupKey: Int? = null) {
|
|||
Text(text = "查看图片")
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
dismissButton = {
|
||||
TextButton(onClick = { setShowGroupItem(null) }) {
|
||||
Text(text = "关闭")
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user