Feat: Use sonner to replace the requested prompt message component #3221 (#9951)

### What problem does this PR solve?

Feat: Use sonner to replace the requested prompt message component #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-09-05 18:43:33 +08:00
committed by GitHub
parent 79ca25ec7e
commit 9aa8cfb73a
10 changed files with 26 additions and 11 deletions

View File

@ -0,0 +1,8 @@
import { useSize } from 'ahooks';
export function useCalculateSheetRight() {
const size = useSize(document.querySelector('body'));
const bodyWidth = size?.width ?? 0;
return bodyWidth > 1800 ? 'right-[620px]' : `right-1/3`;
}