Skip to content

Commit a3702a2

Browse files
committed
fix(x-web): input 布局对齐 App 端
1 parent 3ca3ffa commit a3702a2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

packages/uni-h5/style/framework/uvue.css

+13-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,20 @@ uni-app uni-view {
5555
text-align: left;
5656
}
5757

58-
/* 修正box-sizing: border-box;负面效果 */
58+
/* input 布局对齐 App 端 */
5959
uni-app uni-input {
6060
height: auto;
61+
display: flex;
62+
}
63+
64+
uni-app uni-input>.uni-input-wrapper {
65+
height: auto;
66+
flex: 1;
67+
}
68+
69+
uni-app uni-input>.uni-input-wrapper>.uni-input-input {
70+
height: auto;
71+
flex: 1;
6172
}
6273

6374
/* 文字容器 */
@@ -394,4 +405,4 @@ body .uni-modal__btn_primary {
394405

395406
:is(.uni-video-slots *) {
396407
pointer-events: auto;
397-
}
408+
}

0 commit comments

Comments
 (0)