Card updates

This commit is contained in:
Bill 2021-07-25 04:43:57 -04:00
parent e794745e21
commit f9ed9dacac
6 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,6 @@
.content-area {
padding-top: $container-padding-x;
padding-bottom: $container-padding-x;
resize: vertical;
overflow: auto;
&.simple {

View File

@ -4,11 +4,11 @@ import { NitroCardContentViewProps } from './NitroCardContextView.types';
export const NitroCardContentView: FC<NitroCardContentViewProps> = props =>
{
const { className = null, children = null } = props;
const { children = null, className = '', ...rest } = props;
const { simple = false } = useNitroCardContext();
return (
<div className={ `container-fluid bg-light content-area ${ (simple ? 'simple' : '') } ${ className || '' }` }>
<div className={ `container-fluid bg-light content-area ${ (simple ? 'simple' : '') } ${ className || '' }` } { ...rest }>
{ children }
</div>
);

View File

@ -1,4 +1,5 @@
export interface NitroCardContentViewProps
{
className?: string;
}
import { DetailsHTMLAttributes } from 'react';
export interface NitroCardContentViewProps extends DetailsHTMLAttributes<HTMLDivElement>
{}

View File

@ -4,6 +4,7 @@
.content-area {
min-height: 350px;
height: 350px;
resize: vertical;
}
font[size="16"] {

View File

@ -4,6 +4,7 @@
.content-area {
min-height: 240px;
height: 240px;
resize: vertical;
}
.empty-image {

View File

@ -4,6 +4,7 @@
.content-area {
min-height: 400px;
height: 400px;
resize: vertical;
}
}