mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
navigator thumbnail bg
This commit is contained in:
parent
73d0c9bb12
commit
2f5af8ca1c
@ -30,8 +30,8 @@ $catalog-height: 400px;
|
|||||||
$inventory-width: 528px;
|
$inventory-width: 528px;
|
||||||
$inventory-height: 320px;
|
$inventory-height: 320px;
|
||||||
|
|
||||||
$navigator-width: 430px;
|
$navigator-width: 420px;
|
||||||
$navigator-height: 420px;
|
$navigator-height: 440px;
|
||||||
|
|
||||||
$chat-input-style-selector-widget-width: 210px;
|
$chat-input-style-selector-widget-width: 210px;
|
||||||
$chat-input-style-selector-widget-height: 200px;
|
$chat-input-style-selector-widget-height: 200px;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
.nitro-navigator {
|
.nitro-navigator {
|
||||||
min-width: $navigator-width;
|
|
||||||
width: $navigator-width;
|
width: $navigator-width;
|
||||||
height: $navigator-height;
|
height: $navigator-height;
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ export const NavigatorSearchResultItemView: FC<NavigatorSearchResultItemViewProp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(thumbnail) return (
|
if(thumbnail) return (
|
||||||
<Flex pointer overflow="hidden" column={ true } alignItems="center" onClick={visitRoom} gap={2} className="navigator-item p-2 bg-muted rounded-3 small mx-1 mb-1 flex-column" {...rest}>
|
<Flex pointer overflow="hidden" column={ true } alignItems="center" onClick={visitRoom} gap={0} className="navigator-item p-1 bg-light rounded-3 small mb-1 flex-column border border-muted" {...rest}>
|
||||||
<LayoutRoomThumbnailView roomId={roomData.roomId} customUrl={roomData.officialRoomPicRef} className="d-flex flex-column align-items-center justify-content-end w-100">
|
<LayoutRoomThumbnailView roomId={roomData.roomId} customUrl={roomData.officialRoomPicRef} className="d-flex flex-column align-items-center justify-content-end mb-1">
|
||||||
<LayoutBadgeImageView badgeCode={roomData.groupBadgeCode} isGroup={true} className={ 'position-absolute top-0 start-0 m-1' } />
|
<LayoutBadgeImageView badgeCode={roomData.groupBadgeCode} isGroup={true} className={ 'position-absolute top-0 start-0 m-1' } />
|
||||||
<Flex center className={ 'badge p-1 position-absolute m-1 ' + getUserCounterColor() } gap={ 1 }>
|
<Flex center className={ 'badge p-1 position-absolute m-1 ' + getUserCounterColor() } gap={ 1 }>
|
||||||
<FontAwesomeIcon icon="user" />
|
<FontAwesomeIcon icon="user" />
|
||||||
|
@ -67,7 +67,7 @@ export const NavigatorSearchResultView: FC<NavigatorSearchResultViewProps> = pro
|
|||||||
</Flex> {isExtended &&
|
</Flex> {isExtended &&
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
gridHasTwoColumns ? <AutoGrid columnCount={3} {...rest} columnMinWidth={110} columnMinHeight={130}>
|
gridHasTwoColumns ? <AutoGrid columnCount={3} {...rest} columnMinWidth={110} columnMinHeight={130} className="mx-2">
|
||||||
{searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => <NavigatorSearchResultItemView key={index} roomData={room} thumbnail={ true } />) }
|
{searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => <NavigatorSearchResultItemView key={index} roomData={room} thumbnail={ true } />) }
|
||||||
</AutoGrid> : <Grid columnCount={ 1 } className='navigator-grid' gap={ 0 }>
|
</AutoGrid> : <Grid columnCount={ 1 } className='navigator-grid' gap={ 0 }>
|
||||||
{ searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => <NavigatorSearchResultItemView key={ index } roomData={ room } />) }
|
{ searchResult.rooms.length > 0 && searchResult.rooms.map((room, index) => <NavigatorSearchResultItemView key={ index } roomData={ room } />) }
|
||||||
|
Loading…
Reference in New Issue
Block a user