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 { .content-area {
padding-top: $container-padding-x; padding-top: $container-padding-x;
padding-bottom: $container-padding-x; padding-bottom: $container-padding-x;
resize: vertical;
overflow: auto; overflow: auto;
&.simple { &.simple {

View File

@ -4,11 +4,11 @@ import { NitroCardContentViewProps } from './NitroCardContextView.types';
export const NitroCardContentView: FC<NitroCardContentViewProps> = props => export const NitroCardContentView: FC<NitroCardContentViewProps> = props =>
{ {
const { className = null, children = null } = props; const { children = null, className = '', ...rest } = props;
const { simple = false } = useNitroCardContext(); const { simple = false } = useNitroCardContext();
return ( 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 } { children }
</div> </div>
); );

View File

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

View File

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

View File

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

View File

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