feat: improve mobile style

This commit is contained in:
Yifei Zhang
2023-03-15 05:50:11 +00:00
parent 653a740f0f
commit 64e331a3e3
7 changed files with 36 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
import styles from "./ui-lib.module.scss";
import LoadingIcon from "../icons/three-dots.svg";
export function Popover(props: {
children: JSX.Element;
@@ -36,3 +37,13 @@ export function ListItem(props: { children: JSX.Element[] }) {
export function List(props: { children: JSX.Element[] }) {
return <div className={styles.list}>{props.children}</div>;
}
export function Loading() {
return <div style={{
height: "100vh",
width: "100vw",
display: "flex",
alignItems: "center",
justifyContent: "center"
}}><LoadingIcon /></div>
}