Skip to content

Commit 337fe68

Browse files
committed
fix: 调整路径输入组的布局以支持灵活宽度
1 parent 6ddf40e commit 337fe68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vue/setting/view/toolchains/index.less

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,17 @@
7272
display: flex;
7373
column-gap: @spacing-sm;
7474
align-items: center;
75+
width: 100%;
7576

77+
// Make the path input flexibly take available width
7678
.el-input {
77-
flex: 1;
79+
flex: 1 1 0;
80+
min-width: 0; // allow shrinking in flex container
7881
}
7982

8083
.el-button {
8184
min-width: 80px;
85+
flex: 0 0 auto; // keep button size stable
8286
}
8387
}
8488

0 commit comments

Comments
 (0)