chore: upgrade ktlint to 1.8.0 and format codebase (#1024)
Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
3f3b853758
commit
cfe3e736fd
66 files changed
+1287
-541
No files matched your search
@@ -18,7 +18,11 @@ data class ConfigRow(
|
||||
) {
|
||||
/** Human label: last path segment, underscores → spaces. */
|
||||
val label: String =
|
||||
key.split(".").last().replace("_", " ").replaceFirstChar { it.uppercase() }
|
||||
key
|
||||
.split(".")
|
||||
.last()
|
||||
.replace("_", " ")
|
||||
.replaceFirstChar { it.uppercase() }
|
||||
|
||||
/** Search/display text of the current value. */
|
||||
val valueText: String = value?.let(::jsonText) ?: ""
|
||||
|
||||
@@ -578,7 +578,10 @@ private fun ConfigFieldCard(
|
||||
val field = row.field
|
||||
val description =
|
||||
field?.description
|
||||
?: row.key.replace(".", " → ").replace("_", " ").replaceFirstChar { it.uppercase() }
|
||||
?: row.key
|
||||
.replace(".", " → ")
|
||||
.replace("_", " ")
|
||||
.replaceFirstChar { it.uppercase() }
|
||||
|
||||
Card(
|
||||
modifier =
|
||||
|
||||
Reference in new issue
Block a user