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