Add side bar location in settings (left/right) (#396)

* Allow side bar on right side

* Panel on the right
This commit is contained in:
Chenlei Hu
2024-08-12 21:49:07 -04:00
committed by GitHub
parent f91e335ca7
commit c459698956
4 changed files with 41 additions and 3 deletions

View File

@@ -81,6 +81,14 @@ export const useSettingStore = defineStore('setting', {
options: Object.values(LinkReleaseTriggerMode),
defaultValue: LinkReleaseTriggerMode.ALWAYS
})
app.ui.settings.addSetting({
id: 'Comfy.SideBar.Location',
name: 'Sidebar location',
type: 'combo',
options: ['left', 'right'],
defaultValue: 'left'
})
},
set(key: string, value: any) {