mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed login dialog
This commit is contained in:
parent
840af25df4
commit
6587f65e9b
6 changed files with 16 additions and 14 deletions
|
@ -28,11 +28,11 @@ const ScrollDialog: FC<IProps> = ({
|
|||
onOverlayClick,
|
||||
onRefCapture
|
||||
}) => {
|
||||
const [height, setHeight] = useState(window.innerHeight - 240);
|
||||
const [height, setHeight] = useState(window.innerHeight - 120);
|
||||
const [show_top_sticky, setShowTopSticky] = useState(false);
|
||||
const [ref, setRef] = useState(null);
|
||||
|
||||
const onResize = useCallback(() => setHeight(window.innerHeight - 240), []);
|
||||
const onResize = useCallback(() => setHeight(window.innerHeight - 120), []);
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener("resize", onResize);
|
||||
|
@ -60,7 +60,7 @@ const ScrollDialog: FC<IProps> = ({
|
|||
<div
|
||||
className={classNames(styles.content, {
|
||||
has_buttons: !!buttons,
|
||||
has_title: true
|
||||
has_title: !!title,
|
||||
})}
|
||||
style={{ flexBasis: width }}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue