diff --git a/src/components/IconGrid/IconGrid.css b/src/components/IconGrid/IconGrid.css index 2165659..587fb9c 100644 --- a/src/components/IconGrid/IconGrid.css +++ b/src/components/IconGrid/IconGrid.css @@ -47,6 +47,7 @@ height: 0px; margin: 0px; border-radius: 16px; + background-color: rgba(163, 159, 171, 0.1); overflow: hidden; } @@ -76,6 +77,7 @@ } .snippet pre { text-overflow: ellipsis; + color: black; } .snippet button { background-color: transparent; @@ -98,6 +100,10 @@ height: 48px; } +.button-row button svg { + margin-right: 8px; +} + .close { width: 10%; text-align: end; diff --git a/src/components/IconGrid/IconGridItem.tsx b/src/components/IconGrid/IconGridItem.tsx index ff8c95c..90d94db 100644 --- a/src/components/IconGrid/IconGridItem.tsx +++ b/src/components/IconGrid/IconGridItem.tsx @@ -6,9 +6,9 @@ import React, { } from "react"; import { useRecoilState } from "recoil"; import { motion, AnimatePresence } from "framer-motion"; +import { IconProps, Icon } from "phosphor-react"; import { iconPreviewOpenAtom } from "../../state/atoms"; -import { IconProps, Icon } from "phosphor-react"; import InfoPanel from "./InfoPanel"; import ErrorBoundary from "../ErrorBoundary/ErrorBoundary"; diff --git a/src/components/IconGrid/InfoPanel.tsx b/src/components/IconGrid/InfoPanel.tsx index 5096ee9..23f4780 100644 --- a/src/components/IconGrid/InfoPanel.tsx +++ b/src/components/IconGrid/InfoPanel.tsx @@ -2,6 +2,13 @@ import React, { useRef } from "react"; import { useRecoilValue, useSetRecoilState } from "recoil"; import { motion } from "framer-motion"; import { saveAs } from "file-saver"; +import { + Icon, + ArrowUpRightCircle, + Copy, + Prohibit, + CheckCircle, +} from "phosphor-react"; import { styleQueryAtom, @@ -10,13 +17,6 @@ import { iconPreviewOpenAtom, } from "../../state/atoms"; import useTransientState from "../../hooks/useTransientState"; -import { - Icon, - ArrowUpRightCircle, - Copy, - Prohibit, - CheckCircle, -} from "phosphor-react"; const infoVariants = { open: { @@ -95,7 +95,6 @@ const InfoPanel: React.FC = (props) => { variants={infoVariants} style={{ order: index + (spans - (index % spans)), - backgroundColor: "rgba(163, 159, 171, 0.1)", color: isDark ? "white" : "black", }} > @@ -108,7 +107,7 @@ const InfoPanel: React.FC = (props) => {
HTML/CSS -
+          
             {snippets.html}
             
React -
+          
             {snippets.react}