Skip to content

Commit c3a419b

Browse files
committed
library: TabRow: Move the height modifier to the bottom
1 parent 02259ef commit c3a419b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/components/tabrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The TabRowDefaults object provides default configurations for the TabRow compone
7979

8080
| Constant Name | Type | Value | Description |
8181
| ----------------------------- | ---- | ----- | -------------------------------------------- |
82-
| TabRowHeight | Dp | 54.dp | Default height of tab row for standard style |
82+
| TabRowHeight | Dp | 42.dp | Default height of tab row for standard style |
8383
| TabRowWithContourHeight | Dp | 45.dp | Default height of tab row for contour style |
8484
| TabRowCornerRadius | Dp | 12.dp | Default corner radius for standard style |
8585
| TabRowWithContourCornerRadius | Dp | 8.dp | Default corner radius for contour style |

docs/zh_CN/components/tabrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ TabRowDefaults 对象提供了 TabRow 组件的默认配置。
7979

8080
| 常量名 | 类型 || 说明 |
8181
| ----------------------------- | ---- | ----- | ---------------------------- |
82-
| TabRowHeight | Dp | 54.dp | 标准样式的默认高度 |
82+
| TabRowHeight | Dp | 42.dp | 标准样式的默认高度 |
8383
| TabRowWithContourHeight | Dp | 45.dp | 带轮廓样式的默认高度 |
8484
| TabRowCornerRadius | Dp | 12.dp | 标准样式的默认圆角半径 |
8585
| TabRowWithContourCornerRadius | Dp | 8.dp | 带轮廓样式的默认圆角半径 |

iosApp/iosApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>1.0.7</string>
1919
<key>CFBundleVersion</key>
20-
<string>677</string>
20+
<string>679</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>CADisableMinimumFrameDurationOnPhone</key>

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic/TabRow.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ fun TabRow(
7272
BoxWithConstraints(
7373
modifier = Modifier
7474
.fillMaxWidth()
75-
.height(height)
7675
.then(modifier)
76+
.height(height)
7777
) {
7878
val config = rememberTabRowConfig(tabs, minWidth, maxWidth, cornerRadius, 9.dp, this.maxWidth)
7979

@@ -134,8 +134,8 @@ fun TabRowWithContour(
134134
BoxWithConstraints(
135135
modifier = Modifier
136136
.fillMaxWidth()
137-
.height(height)
138137
.then(modifier)
138+
.height(height)
139139
) {
140140
val lazyRowAvailableWidth = this.maxWidth - (contourPadding * 2)
141141
val config = rememberTabRowConfig(tabs, minWidth, maxWidth, cornerRadius, contourPadding, lazyRowAvailableWidth)
@@ -309,7 +309,7 @@ object TabRowDefaults {
309309
/**
310310
* The default height of the [TabRow].
311311
*/
312-
val TabRowHeight = 54.dp
312+
val TabRowHeight = 42.dp
313313

314314
/**
315315
* The default height of the [TabRowWithContour].

0 commit comments

Comments
 (0)