mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 00:34:09 +00:00
Remove support of Top/Bottom in menu positions (#933)
* Remove support of Top/Bottom in menu positions * Update menu positions in test setting * nit
This commit is contained in:
@@ -87,6 +87,22 @@ watchEffect(() => {
|
||||
}
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
const useNewMenu = settingStore.get('Comfy.UseNewMenu')
|
||||
if (useNewMenu === 'Disabled') {
|
||||
app.ui.restoreMenuPosition()
|
||||
document.body.style.removeProperty('display')
|
||||
if (app.ui.menuContainer) {
|
||||
app.ui.menuContainer.style.removeProperty('display')
|
||||
}
|
||||
} else {
|
||||
document.body.style.setProperty('display', 'grid')
|
||||
if (app.ui.menuContainer) {
|
||||
app.ui.menuContainer.style.setProperty('display', 'none')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
const init = () => {
|
||||
settingStore.addSettings(app.ui.settings)
|
||||
app.extensionManager = useWorkspaceStore()
|
||||
|
||||
Reference in New Issue
Block a user