fix: 确保紧凑型下拉菜单与按钮对齐(相同高度和垂直居中)

This commit is contained in:
JayBridge 2025-09-16 16:28:31 +08:00
parent 508751a80c
commit 8b5afe3a32

View file

@ -105,7 +105,7 @@ If your plugin does not need CSS, delete this file.
/* 紧凑型分隔符下拉容器,放在按钮组内:去掉 Setting 默认的下方 padding 并垂直居中 */
.csv-delimiter-compact {
display: flex;
align-items: center;
align-items: center;
}
.csv-delimiter-compact .setting-item {
padding-top: 0 !important;
@ -119,6 +119,23 @@ If your plugin does not need CSS, delete this file.
min-width: 72px; /* 视觉上和按钮宽度接近 */
}
/* Fix: ensure compact dropdown aligns with buttons (same height and vertical centering) */
.csv-delimiter-compact .setting-item {
display: flex !important;
align-items: center !important;
height: 32px !important; /* match button/search input height */
}
.csv-delimiter-compact .setting-item .setting-item-control {
display: flex !important;
align-items: center !important;
height: 32px !important;
}
.csv-delimiter-compact .dropdown,
.csv-delimiter-compact .dropdown .dropdown-content {
height: 32px !important;
line-height: 32px !important;
}
/* Pin按钮样式 */
.csv-pin-btn {
position: absolute;