From 7c05cc5deb4182daa48d430e0b56ee9defc97e08 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Fri, 22 Nov 2024 16:32:27 +0100 Subject: [PATCH] update: run screen actions --- .../commonMain/kotlin/org/ooni/probe/ui/run/RunScreen.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/org/ooni/probe/ui/run/RunScreen.kt b/composeApp/src/commonMain/kotlin/org/ooni/probe/ui/run/RunScreen.kt index 7b809e1b..b8c87681 100644 --- a/composeApp/src/commonMain/kotlin/org/ooni/probe/ui/run/RunScreen.kt +++ b/composeApp/src/commonMain/kotlin/org/ooni/probe/ui/run/RunScreen.kt @@ -8,12 +8,14 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi import androidx.compose.foundation.layout.FlowRow import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.asPaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.navigationBars import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.foundation.lazy.items @@ -39,9 +41,12 @@ import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.testTag import androidx.compose.ui.semantics.Role import androidx.compose.ui.state.ToggleableState +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.dp import ooniprobe.composeapp.generated.resources.Dashboard_RunTests_Description import ooniprobe.composeapp.generated.resources.Dashboard_RunTests_RunButton_Label @@ -62,6 +67,7 @@ import ooniprobe.composeapp.generated.resources.expand import ooniprobe.composeapp.generated.resources.ic_keyboard_arrow_down import ooniprobe.composeapp.generated.resources.ic_keyboard_arrow_up import ooniprobe.composeapp.generated.resources.ic_timer +import ooniprobe.composeapp.generated.resources.ooni_empty_state import org.jetbrains.compose.resources.painterResource import org.jetbrains.compose.resources.pluralStringResource import org.jetbrains.compose.resources.stringResource @@ -279,7 +285,7 @@ private fun DescriptorItem( onClick = null, modifier = Modifier.padding(end = 24.dp), ) - TestDescriptorLabel(descriptor) + TestDescriptorLabel(descriptor, modifier = Modifier.weight(1f)) IconButton(onClick = { onDropdownToggled() }) { Icon( painterResource(