1
0
Fork 0
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:
muerwre 2019-08-02 20:49:08 +07:00
parent 840af25df4
commit 6587f65e9b
6 changed files with 16 additions and 14 deletions

View file

@ -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 }}
>