manager: Modify the text padding in the ElevatedCard

- Adding Formatting Characters

Signed-off-by: WenHao2130 <wenhao2130@outlook.com>
This commit is contained in:
ShirkNeko
2025-05-24 14:11:14 +08:00
parent e826f43aed
commit 1b85dfbed1
2 changed files with 3 additions and 3 deletions

View File

@@ -240,7 +240,7 @@ fun HomeScreen(navigator: DestinationsNavigator) {
clickCount++
prefs.edit { putInt("click_count", clickCount) }
}
.padding(16.dp),
.padding(horizontal = 24.dp, vertical = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(

View File

@@ -33,7 +33,7 @@ object ModuleUtils {
}
}?.removeSuffix(".zip") ?: context.getString(R.string.unknown_module)
var formattedFileName = fileName.replace(Regex("[^a-zA-Z0-9\\s\\-_.()\\u4e00-\\u9fa5]"), "").trim()
var formattedFileName = fileName.replace(Regex("[^a-zA-Z0-9\\s\\-_.@()\\u4e00-\\u9fa5]"), "").trim()
var moduleName = formattedFileName
try {
@@ -56,7 +56,7 @@ object ModuleUtils {
while (reader.readLine().also { line = it } != null) {
if (line?.startsWith("name=") == true) {
moduleName = line.substringAfter("=")
moduleName = moduleName.replace(Regex("[^a-zA-Z0-9\\s\\-_.()\\u4e00-\\u9fa5]"), "").trim()
moduleName = moduleName.replace(Regex("[^a-zA-Z0-9\\s\\-_.@()\\u4e00-\\u9fa5]"), "").trim()
nameFound = true
break
}