Skip to content

Commit 257d34b

Browse files
wip
1 parent e37f009 commit 257d34b

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

Library/lib/src/commonMain/kotlin/ui/pane/RequestPane.kt

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ package ui.pane
22

33
import androidx.compose.foundation.layout.*
44
import androidx.compose.foundation.lazy.LazyColumn
5-
import androidx.compose.foundation.rememberScrollState
6-
import androidx.compose.foundation.verticalScroll
75
import androidx.compose.material3.*
86
import androidx.compose.runtime.Composable
97
import androidx.compose.runtime.getValue
@@ -105,17 +103,19 @@ fun RequestPane(
105103
modifier = Modifier
106104
.padding(horizontal = 16.dp),
107105
) {
108-
item {
109-
Spacer(modifier = Modifier.height(8.dp))
110-
}
111106
stickyHeader {
112-
Text(
113-
text = "Request",
114-
style = MaterialTheme.typography.titleLarge
115-
)
107+
Surface {
108+
Text(
109+
modifier = Modifier
110+
.fillMaxWidth()
111+
.padding(vertical = 8.dp),
112+
text = "Request",
113+
style = MaterialTheme.typography.titleLarge
114+
)
115+
}
116116
}
117117
item {
118-
Spacer(modifier = Modifier.height(16.dp))
118+
Spacer(modifier = Modifier.height(8.dp))
119119
Text(
120120
text = "Header",
121121
style = MaterialTheme.typography.titleMedium
@@ -137,16 +137,21 @@ fun RequestPane(
137137
text = transaction.requestBody.orEmpty(),
138138
style = MaterialTheme.typography.bodySmall
139139
)
140-
Spacer(modifier = Modifier.height(24.dp))
140+
Spacer(modifier = Modifier.height(16.dp))
141141
}
142142
stickyHeader {
143-
Text(
144-
text = "Response",
145-
style = MaterialTheme.typography.titleLarge
146-
)
143+
Surface {
144+
Text(
145+
modifier = Modifier
146+
.fillMaxWidth()
147+
.padding(vertical = 8.dp),
148+
text = "Response",
149+
style = MaterialTheme.typography.titleLarge
150+
)
151+
}
147152
}
148153
item {
149-
Spacer(modifier = Modifier.height(16.dp))
154+
Spacer(modifier = Modifier.height(8.dp))
150155
Text(
151156
text = "Header",
152157
style = MaterialTheme.typography.titleMedium

0 commit comments

Comments
 (0)