fix: password error text

This commit is contained in:
dany
2025-11-21 15:11:56 +03:00
parent a3f8fc0221
commit abdc7f3227
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DeviceTable">
<option name="columnSorters">
<list>
<ColumnSorterState>
<option name="column" value="Name" />
<option name="order" value="ASCENDING" />
</ColumnSorterState>
</list>
</option>
</component>
</project>
@@ -29,6 +29,7 @@ import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.text.input.PasswordVisualTransformation
import androidx.compose.ui.text.input.VisualTransformation
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
@@ -78,7 +79,7 @@ fun TTPasswordField(
Text(
text = error,
style = typography.labelLarge,
fontSize = 12.sp
fontSize = if (error.length > 50) 11.sp else 12.sp
)
}
},