mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 15:51:23 +02:00
Fix bottom-up dropdown positioning
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
|
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
|
||||||
"@tauri-apps/cli": "^1.5.4",
|
"@tauri-apps/cli": "^1.5.6",
|
||||||
"@types/node": "^18.7.10",
|
"@types/node": "^18.7.10",
|
||||||
"@types/papaparse": "^5.3.7",
|
"@types/papaparse": "^5.3.7",
|
||||||
"@types/parse-color": "^1.0.1",
|
"@types/parse-color": "^1.0.1",
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ const Menu = forwardRef<Omit<DropdownRef, 'open' | 'isOpen' | 'toggle'>, MenuPro
|
|||||||
const upsideDown = vSpaceRemaining < 200;
|
const upsideDown = vSpaceRemaining < 200;
|
||||||
const containerStyles = {
|
const containerStyles = {
|
||||||
top: !upsideDown ? top : undefined,
|
top: !upsideDown ? top : undefined,
|
||||||
bottom: upsideDown ? top : undefined,
|
bottom: upsideDown ? docRect.height - top : undefined,
|
||||||
right: onRight ? docRect.width - triggerShape?.right : undefined,
|
right: onRight ? docRect.width - triggerShape?.right : undefined,
|
||||||
left: !onRight ? triggerShape?.left : undefined,
|
left: !onRight ? triggerShape?.left : undefined,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user