mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-19 05:46:27 +01:00
Update layout
This commit is contained in:
parent
59321bb133
commit
2b10284506
@ -78,3 +78,7 @@ ul {
|
|||||||
.z-index-1 {
|
.z-index-1 {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-basis-fit-content {
|
||||||
|
flex-basis: fit-content;
|
||||||
|
}
|
||||||
|
@ -13,7 +13,7 @@ export interface ButtonProps extends FlexProps
|
|||||||
|
|
||||||
export const Button: FC<ButtonProps> = props =>
|
export const Button: FC<ButtonProps> = props =>
|
||||||
{
|
{
|
||||||
const { variant = 'primary', size = null, active = false, disabled = false, classNames = [], ...rest } = props;
|
const { variant = 'primary', size = 'sm', active = false, disabled = false, classNames = [], ...rest } = props;
|
||||||
|
|
||||||
const getClassNames = useMemo(() =>
|
const getClassNames = useMemo(() =>
|
||||||
{
|
{
|
||||||
|
@ -23,6 +23,7 @@ export const Grid: FC<GridProps> = props =>
|
|||||||
const newClassNames: string[] = [];
|
const newClassNames: string[] = [];
|
||||||
|
|
||||||
if(!grow) newClassNames.push('h-100');
|
if(!grow) newClassNames.push('h-100');
|
||||||
|
else newClassNames.push('flex-basis-fit-content');
|
||||||
|
|
||||||
if(inline) newClassNames.push('inline-grid');
|
if(inline) newClassNames.push('inline-grid');
|
||||||
else newClassNames.push('grid');
|
else newClassNames.push('grid');
|
||||||
|
@ -2,7 +2,6 @@ $nitro-card-header-height: 33px;
|
|||||||
$nitro-card-tabs-height: 33px;
|
$nitro-card-tabs-height: 33px;
|
||||||
|
|
||||||
.nitro-card {
|
.nitro-card {
|
||||||
pointer-events: all;
|
|
||||||
resize: both;
|
resize: both;
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
|
@ -21,5 +21,6 @@
|
|||||||
.draggable-window {
|
.draggable-window {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
|
pointer-events: all;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user