lots of UI changes, and keyboard command support

This commit is contained in:
Sriram Hariharan
2023-03-04 22:42:51 -06:00
parent 00b8cd74b6
commit bc464cd264
9 changed files with 143 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
@import 'src/views/styles/base.module.scss';
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
&.overlay {
background-color: rgba(0, 0, 0, 0.5);
z-index: 2147483647;
}
}
.body {
overflow-y: auto;
z-index: 2147483647;
background-color: rgb(52, 53, 65);
box-shadow: 0px 12px 30px 0px #323e5f29;
transition: box-shadow 0.15s;
}

View File

@@ -0,0 +1,31 @@
import classNames from 'classnames';
import React, { PropsWithChildren } from 'react';
import styles from './Panel.module.scss';
interface Props {
testId?: string;
style?: React.CSSProperties;
className?: string;
overlay?: boolean;
}
/**
*
*/
export default function Panel(props: PropsWithChildren<Props>) {
return (
<div
style={props.style}
className={classNames(
styles.container,
{
[styles.overlay]: props.overlay,
},
props.className
)}
data-testid={props.testId}
>
<div className={styles.body}>{props.children}</div>
</div>
);
}