fix: 修复搜索框页面加载后视觉中心偏移问题
- 移除 input.form-control 的 display: flex(input 元素不支持 flex 布局) - 显式设置 input 和 icon 容器的 padding 值确保一致 - 通过 line-height 和 padding 精确控制垂直对齐
This commit is contained in:
@@ -1914,13 +1914,16 @@ body.leftbar-can-headroom.headroom---unpinned #navbar-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-top: 0.625rem;
|
||||
padding-bottom: 0.625rem;
|
||||
transition: all var(--animation-slow) var(--ease-emphasized);
|
||||
}
|
||||
|
||||
#navbar_search_input_container input.form-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 200px;
|
||||
padding-top: 0.625rem;
|
||||
padding-bottom: 0.625rem;
|
||||
line-height: 1.5;
|
||||
transition: all 0.5s cubic-bezier(0.4, 0, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user