Compare commits

...

2 Commits

Author SHA1 Message Date
2a2b1b8928 fix: 精油搜索框撑宽整表,限制 width 100% 让 4 列都能展示
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 9s
Test / build-check (push) Successful in 5s
PR Preview / test (pull_request) Successful in 10s
PR Preview / deploy-preview (pull_request) Successful in 17s
Test / e2e-test (push) Successful in 4m52s
.form-select 之前没设 width,<input> 默认 size=20 宽约 180px,
把整个 editor-table 撑出面板,后面几列被挤出屏幕。加 width 100%
+ min-width 0 + box-sizing border-box,让精油列占剩余空间即可。
2026-04-18 18:12:52 +00:00
dacd4887aa fix: 手机编辑配方 overlay 合适宽度 + 屏蔽 tab 滑动
All checks were successful
Test / unit-test (push) Successful in 7s
Test / build-check (push) Successful in 4s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / e2e-test (push) Successful in 3m1s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 17s
移动端下 .overlay-panel 内边距从 24px 缩小到 16px,配合标题
字号、容器外边距和 ratio 提示换行调整,使编辑配方弹层在手机
上视觉更紧凑。

另外把 .overlay 加入 onSwipeEnd 的 modal 选择器,编辑弹层
打开时不再被左右滑动误触切换 tab。
2026-04-18 13:27:49 +00:00
2 changed files with 22 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ function onSwipeEnd() {
// Carousel area excluded // Carousel area excluded
if (swipeStartTarget.value?.closest?.('[data-no-tab-swipe]')) return if (swipeStartTarget.value?.closest?.('[data-no-tab-swipe]')) return
// Skip when modal/overlay is open // Skip when modal/overlay is open
if (document.querySelector('.modal-overlay, .detail-overlay, .dialog-overlay')) return if (document.querySelector('.modal-overlay, .detail-overlay, .dialog-overlay, .overlay')) return
const tabs = visibleTabs.value.map(t => t.key) const tabs = visibleTabs.value.map(t => t.key)
const currentIdx = tabs.indexOf(ui.currentSection) const currentIdx = tabs.indexOf(ui.currentSection)

View File

@@ -2307,6 +2307,9 @@ watch(() => recipeStore.recipes, () => {
.form-select { .form-select {
flex: 1; flex: 1;
width: 100%;
min-width: 0;
box-sizing: border-box;
padding: 8px 10px; padding: 8px 10px;
border: 1.5px solid #d4cfc7; border: 1.5px solid #d4cfc7;
border-radius: 8px; border-radius: 8px;
@@ -2328,6 +2331,7 @@ watch(() => recipeStore.recipes, () => {
.oil-search-wrap { .oil-search-wrap {
flex: 1; flex: 1;
width: 100%;
position: relative; position: relative;
} }
@@ -2483,5 +2487,22 @@ watch(() => recipeStore.recipes, () => {
.manage-toolbar { .manage-toolbar {
flex-direction: column; flex-direction: column;
} }
.overlay-panel {
padding: 16px;
border-radius: 12px;
max-height: calc(100vh - 32px);
}
.overlay-header {
margin-bottom: 12px;
}
.overlay-header h3 {
font-size: 15px;
}
.ratio-hint {
white-space: normal;
}
.editor-section {
margin-bottom: 12px;
}
} }
</style> </style>