fix: 手机编辑配方弹层合适宽度 + 打开时屏蔽 tab 滑动 #44

Merged
fam merged 7 commits from fix/mobile-edit-recipe-width into main 2026-04-18 19:13:05 +00:00
2 changed files with 18 additions and 1 deletions
Showing only changes of commit dacd4887aa - Show all commits

View File

@@ -196,7 +196,7 @@ function onSwipeEnd() {
// Carousel area excluded
if (swipeStartTarget.value?.closest?.('[data-no-tab-swipe]')) return
// 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 currentIdx = tabs.indexOf(ui.currentSection)

View File

@@ -2483,5 +2483,22 @@ watch(() => recipeStore.recipes, () => {
.manage-toolbar {
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>