mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +01:00
Card updates
This commit is contained in:
parent
e794745e21
commit
f9ed9dacac
@ -1,7 +1,6 @@
|
||||
.content-area {
|
||||
padding-top: $container-padding-x;
|
||||
padding-bottom: $container-padding-x;
|
||||
resize: vertical;
|
||||
overflow: auto;
|
||||
|
||||
&.simple {
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -1,4 +1,5 @@
|
||||
export interface NitroCardContentViewProps
|
||||
{
|
||||
className?: string;
|
||||
}
|
||||
import { DetailsHTMLAttributes } from 'react';
|
||||
|
||||
|
||||
export interface NitroCardContentViewProps extends DetailsHTMLAttributes<HTMLDivElement>
|
||||
{}
|
||||
|
@ -4,6 +4,7 @@
|
||||
.content-area {
|
||||
min-height: 350px;
|
||||
height: 350px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
font[size="16"] {
|
||||
|
@ -4,6 +4,7 @@
|
||||
.content-area {
|
||||
min-height: 240px;
|
||||
height: 240px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.empty-image {
|
||||
|
@ -4,6 +4,7 @@
|
||||
.content-area {
|
||||
min-height: 400px;
|
||||
height: 400px;
|
||||
resize: vertical;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user