Symptom

On the Server settings screen the “Host or IP” OutlinedTextField label wrapped to two lines (“Host or / IP”) because the field was too narrow on the 411 dp portrait phone frame.

Root cause

The EditServer Row laid out three items: Host field (weight(1f)), Port field (width(100.dp) fixed), and a Test button (intrinsic width). Non-weighted items (port + button) were measured first, leaving only ~109 dp for the host field. Material3’s OutlinedTextField label needs ~119 dp to render “Host or IP” on one line at the default label text size, so it wrapped.

Fix

Changed the port field from Modifier.width(CommonLayout.SERVER_FIELD_WIDTH) to Modifier.weight(1f) and the host field from weight(1f) to weight(2f). The Test button continues to take its intrinsic width; the remaining space is divided 2:1 between host and port, giving the host field ~139 dp — enough to display the label without wrapping.

Prevention