diff --git a/ui/src/components/PopperHover/index.tsx b/ui/src/components/PopperHover/index.tsx index fad8e9be34bf7e90d116b9a9af548d17177d9d2c..ca6c4bad8d0763293acc6d7f24c62c73d1bd5946 100644 --- a/ui/src/components/PopperHover/index.tsx +++ b/ui/src/components/PopperHover/index.tsx @@ -96,7 +96,7 @@ export const PopperHover = ({ {ReactDOM.createPortal( - + + diff --git a/ui/src/scenes/Editor/Loader/index.tsx b/ui/src/scenes/Editor/Loader/index.tsx index e9365db9dc4d00bf9d395e507d09cce8a4b3cea9..73b0f67722f0cb881deb1dca21bdb37295e60162 100644 --- a/ui/src/scenes/Editor/Loader/index.tsx +++ b/ui/src/scenes/Editor/Loader/index.tsx @@ -2,18 +2,13 @@ import React, { useEffect, useRef, useState } from "react" import { CSSTransition } from "react-transition-group" import styled, { keyframes } from "styled-components" -import { createGlobalFadeTransition, TransitionDuration } from "components" +import { TransitionDuration } from "components" import { color } from "utils" type Props = Readonly<{ show: boolean }> -const GlobalTransitionStyles = createGlobalFadeTransition( - "editor-loader-fade", - TransitionDuration.SLOW, -) - const move = keyframes` 0% { background-position: left bottom; @@ -69,9 +64,8 @@ const Loader = ({ show }: Props) => { return ( <> - } -const Wrapper = styled.div<{ _width: number }>` +const Wrapper = styled.div` display: flex; - max-height: ${({ _width }) => _width}px; - width: ${({ _width }) => _width}px; + max-height: 600px; + width: 600px; + max-width: 100vw; padding: 0.6rem 0; flex-direction: column; background: ${color("draculaBackgroundDarker")}; @@ -45,7 +46,6 @@ const QueryPicker = ({ hidePicker, queries, ref }: Props) => { const enterPress = useKeyPress("Enter", { preventDefault: true }) const [cursor, setCursor] = useState(0) const [hovered, setHovered] = useState() - const { sm } = useScreenSize() useEffect(() => { if (queries.length && downPress) { @@ -75,7 +75,7 @@ const QueryPicker = ({ hidePicker, queries, ref }: Props) => { }, [hovered, queries]) return ( - + Navigate the list with keys, exit with  diff --git a/ui/src/scenes/SideMenu/index.tsx b/ui/src/scenes/SideMenu/index.tsx index c6e47a57b860c9bf01570e06905f231a0f35dc98..aa17ce814622e2f2d446f3478f712ea2129bead9 100644 --- a/ui/src/scenes/SideMenu/index.tsx +++ b/ui/src/scenes/SideMenu/index.tsx @@ -3,17 +3,12 @@ import { useDispatch, useSelector } from "react-redux" import { CSSTransition } from "react-transition-group" import styled from "styled-components" -import { createGlobalFadeTransition, TransitionDuration } from "components" +import { TransitionDuration } from "components" import { actions, selectors } from "store" import { color } from "utils" import Schema from "../Schema" -const GlobalTransitionStyles = createGlobalFadeTransition( - "side-menu-backdrop-fade", - TransitionDuration.REG, -) - const WIDTH = 280 const Backdrop = styled.div` @@ -68,15 +63,15 @@ const SideMenu = () => { return ( <> - {opened && } +