feat(gallery): 设置浮层样式 + 同步 gallery 1.4.0(下拉不占前台)

This commit is contained in:
qiqi committed 2026-11-20 12:45:54 +08:00
1 parent 59a90325a3
commit 03c79bf5e8
3 files changed
+61 -18

No files matched your search

+14
View File
@@ -2125,6 +2125,20 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-gal-count { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; }
.iwb-gal-status { font-size: 11px; color: var(--iwb-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.iwb-gal-opts { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin-left: auto; }
/* 图库设置浮层(v1.4.0):三个下拉不再占前台,点「设置」从底栏上方浮出 */
.iwb-history-embedded { position: relative; }
.iwb-gal-setbtn { margin-left: auto; flex: 0 0 auto; }
.iwb-gal-setbtn-on { background: var(--iwb-layer2); border-color: var(--iwb-border-strong, var(--iwb-border)); }
.iwb-gal-settings {
position: absolute; right: 12px; bottom: 44px; z-index: 30; width: 186px; max-width: calc(100% - 24px);
display: flex; flex-direction: column; gap: 8px; padding: 10px;
background: var(--iwb-layer); border: 1px solid var(--iwb-border); border-radius: 8px;
box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.iwb-gal-settings-title { font-size: 11px; font-weight: 600; color: var(--iwb-text2); }
.iwb-gal-setrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--iwb-text2); }
.iwb-gal-setlabel { flex: 0 0 auto; }
.iwb-gal-setrow select, .iwb-gal-settings select { flex: 1 1 auto; width: auto; min-width: 62px; max-width: 96px; height: 22px; font-size: 11px; padding: 0 2px 0 4px; }
.iwb-gal-opt { display: inline-flex; align-items: center; gap: 3px; }
/* 三个下拉尽量窄:只留内容 + 箭头的最小宽度(0.5K / 特大 / 全部 都放得下) */
.iwb-gal-opt select, .iwb-gal-opts select { width: auto; min-width: 34px; max-width: 44px; height: 20px; padding: 0 0 0 3px; font-size: 10px; }