File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
fluent/src/commonMain/kotlin/com/konyaco/fluent/component
gallery/src/commonMain/kotlin/com/konyaco/fluent/gallery/screen/navigation Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import androidx.compose.foundation.layout.size
20
20
import androidx.compose.foundation.layout.widthIn
21
21
import androidx.compose.foundation.layout.wrapContentHeight
22
22
import androidx.compose.foundation.layout.wrapContentSize
23
+ import androidx.compose.foundation.layout.wrapContentWidth
23
24
import androidx.compose.foundation.lazy.LazyListItemInfo
24
25
import androidx.compose.foundation.lazy.LazyListScope
25
26
import androidx.compose.foundation.lazy.LazyListState
@@ -154,6 +155,7 @@ fun TabRow(
154
155
modifier = Modifier
155
156
.onGloballyPositioned { rowRect.value = it.boundsInParent() }
156
157
.weight(1f )
158
+ .wrapContentWidth(Alignment .Start )
157
159
.height(TabViewHeight )
158
160
.zIndex(1f )
159
161
)
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ internal fun TabViewWindowContent(
151
151
) {
152
152
Column (modifier = Modifier .windowInsetsPadding(paddingInsets)) {
153
153
val selectedIndex = remember { mutableStateOf(1 ) }
154
- val tabItems = remember { mutableStateListOf(* Array (100 ) { it + 1 }) }
154
+ val tabItems = remember { mutableStateListOf(* Array (6 ) { it + 1 }) }
155
155
val state = rememberLazyListState()
156
156
val endDividerController = rememberTabItemEndDividerController(
157
157
selectedKey = { selectedIndex.value },
You can’t perform that action at this time.
0 commit comments