Restore top/bottom menu location setting (#1123)

* Rename floating to top

* Adjust teleport target

* Fix dropdown direction for bottom menubar

* Fix z-index
This commit is contained in:
Chenlei Hu
2024-10-05 18:08:48 -04:00
committed by GitHub
parent 4d5fbeff45
commit 2c90735bb1
12 changed files with 35 additions and 18 deletions

View File

@@ -376,10 +376,11 @@ export const CORE_SETTINGS: SettingParams[] = [
name: 'Use new menu and workflow management.',
experimental: true,
type: 'combo',
options: ['Disabled', 'Floating'],
options: ['Disabled', 'Top', 'Bottom'],
migrateDeprecatedValue: (value: string) => {
if (['Top', 'Bottom'].includes(value)) {
return 'Floating'
// Floating is now supported by dragging the docked actionbar off.
if (value === 'Floating') {
return 'Top'
}
return value
}