fix(ShaderBake): 属性行的数值框被滑块挤出面板
主题里的滑块默认不收缩,给 flex-grow 之后它把整行剩余宽度吃满, 右侧那个 58px 的数值框就被推到面板外面看不见(Opacity/Density 这些 Range 属性全中)。 显式把滑块设成可收缩(min-width 40),数值框钉死 58px 不参与收缩。
This commit is contained in:
@@ -320,11 +320,15 @@
|
||||
|
||||
.prop-slider {
|
||||
flex-grow: 1;
|
||||
min-width: 0;
|
||||
/* 主题里的滑块默认不收缩:不显式压回 1,它会占满整行并把右边的数值框挤出面板 */
|
||||
flex-shrink: 1;
|
||||
min-width: 40px;
|
||||
}
|
||||
|
||||
.prop-range-value {
|
||||
width: 58px;
|
||||
min-width: 58px;
|
||||
max-width: 58px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user