Update layout

This commit is contained in:
Bill 2022-01-03 00:10:55 -05:00
parent fb37877e6e
commit 97141c2fcf
3 changed files with 14 additions and 5 deletions

View File

@ -12,4 +12,8 @@
&.unseen {
background-color: rgba($success, 0.4);
}
.avatar-image {
background-position-y: -35px;
}
}

View File

@ -1,5 +1,7 @@
import { FC, useMemo } from 'react';
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';
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 }>
{ (itemCount > itemCountMinimum) &&
<ItemCountView count={ itemCount } /> }
{/* { (itemUniqueNumber > 0) &&
<div className="position-absolute unique-item-counter">
<LimitedEditionStyledNumberView value={ itemUniqueNumber } />
</div> } */}
{ (itemUniqueNumber > 0) &&
<>
<Base fit className="unique-bg-override" style={ { backgroundImage: `url(${ itemImage })` } } />
<div className="position-absolute bottom-0 unique-item-counter">
<LimitedEditionStyledNumberView value={ itemUniqueNumber } />
</div>
</> }
{ children }
</Column>
);

View File

@ -1 +1 @@
export type OverflowType = 'hidden' | 'auto';
export type OverflowType = 'hidden' | 'auto' | 'unset';