mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
### 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:
8
web/src/pages/agent/hooks/use-calculate-sheet-right.ts
Normal file
8
web/src/pages/agent/hooks/use-calculate-sheet-right.ts
Normal 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`;
|
||||
}
|
||||
Reference in New Issue
Block a user