mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Update layout
This commit is contained in:
parent
fb37877e6e
commit
97141c2fcf
@ -12,4 +12,8 @@
|
|||||||
&.unseen {
|
&.unseen {
|
||||||
background-color: rgba($success, 0.4);
|
background-color: rgba($success, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.avatar-image {
|
||||||
|
background-position-y: -35px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { FC, useMemo } from 'react';
|
import { FC, useMemo } from 'react';
|
||||||
import { ItemCountView } from '../../views/shared/item-count/ItemCountView';
|
import { ItemCountView } from '../../views/shared/item-count/ItemCountView';
|
||||||
|
import { LimitedEditionStyledNumberView } from '../../views/shared/limited-edition/styled-number/LimitedEditionStyledNumberView';
|
||||||
|
import { Base } from '../Base';
|
||||||
import { Column, ColumnProps } from '../Column';
|
import { Column, ColumnProps } from '../Column';
|
||||||
|
|
||||||
export interface LayoutGridItemProps extends ColumnProps
|
export interface LayoutGridItemProps extends ColumnProps
|
||||||
@ -51,10 +53,13 @@ export const LayoutGridItem: FC<LayoutGridItemProps> = props =>
|
|||||||
<Column center pointer position={ position } overflow={ overflow } classNames={ getClassNames } style={ getStyle } { ...rest }>
|
<Column center pointer position={ position } overflow={ overflow } classNames={ getClassNames } style={ getStyle } { ...rest }>
|
||||||
{ (itemCount > itemCountMinimum) &&
|
{ (itemCount > itemCountMinimum) &&
|
||||||
<ItemCountView count={ itemCount } /> }
|
<ItemCountView count={ itemCount } /> }
|
||||||
{/* { (itemUniqueNumber > 0) &&
|
{ (itemUniqueNumber > 0) &&
|
||||||
<div className="position-absolute unique-item-counter">
|
<>
|
||||||
<LimitedEditionStyledNumberView value={ itemUniqueNumber } />
|
<Base fit className="unique-bg-override" style={ { backgroundImage: `url(${ itemImage })` } } />
|
||||||
</div> } */}
|
<div className="position-absolute bottom-0 unique-item-counter">
|
||||||
|
<LimitedEditionStyledNumberView value={ itemUniqueNumber } />
|
||||||
|
</div>
|
||||||
|
</> }
|
||||||
{ children }
|
{ children }
|
||||||
</Column>
|
</Column>
|
||||||
);
|
);
|
||||||
|
@ -1 +1 @@
|
|||||||
export type OverflowType = 'hidden' | 'auto';
|
export type OverflowType = 'hidden' | 'auto' | 'unset';
|
||||||
|
Loading…
Reference in New Issue
Block a user