You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Fix: 🆙
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"css.validate": false,
|
||||||
|
"scss.validate": false,
|
||||||
|
"stylelint.enable": true
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FC } from 'react';
|
import { FC, ReactNode } from 'react';
|
||||||
import { LocalizeText } from '../../api';
|
import { LocalizeText } from '../../api';
|
||||||
import { Base } from '../Base';
|
import { Base } from '../Base';
|
||||||
import { Column } from '../Column';
|
import { Column } from '../Column';
|
||||||
@@ -14,11 +14,12 @@ interface LayoutTrophyViewProps
|
|||||||
senderName: string;
|
senderName: string;
|
||||||
customTitle?: string;
|
customTitle?: string;
|
||||||
onCloseClick: () => void;
|
onCloseClick: () => void;
|
||||||
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const LayoutTrophyView: FC<LayoutTrophyViewProps> = props =>
|
export const LayoutTrophyView: FC<LayoutTrophyViewProps> = props =>
|
||||||
{
|
{
|
||||||
const { color = '', message = '', date = '', senderName = '', customTitle = null, onCloseClick = null } = props;
|
const { color = '', message = '', date = '', senderName = '', customTitle = null, onCloseClick = null, children = null } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DraggableWindow handleSelector=".drag-handler">
|
<DraggableWindow handleSelector=".drag-handler">
|
||||||
@@ -28,6 +29,7 @@ export const LayoutTrophyView: FC<LayoutTrophyViewProps> = props =>
|
|||||||
<Text bold>{ LocalizeText('widget.furni.trophy.title') }</Text>
|
<Text bold>{ LocalizeText('widget.furni.trophy.title') }</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Column className="trophy-content py-1" gap={ 1 }>
|
<Column className="trophy-content py-1" gap={ 1 }>
|
||||||
|
{ children }
|
||||||
{ customTitle &&
|
{ customTitle &&
|
||||||
<Text bold>{ customTitle }</Text> }
|
<Text bold>{ customTitle }</Text> }
|
||||||
{ message }
|
{ message }
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { LayoutTrophyView } from '../../../../common';
|
import { LayoutBadgeImageView, LayoutTrophyView } from '../../../../common';
|
||||||
import { useFurnitureBadgeDisplayWidget } from '../../../../hooks';
|
import { useFurnitureBadgeDisplayWidget } from '../../../../hooks';
|
||||||
|
|
||||||
export const FurnitureBadgeDisplayView: FC<{}> = props =>
|
export const FurnitureBadgeDisplayView: FC<{}> = props =>
|
||||||
@@ -8,5 +8,11 @@ export const FurnitureBadgeDisplayView: FC<{}> = props =>
|
|||||||
|
|
||||||
if(objectId === -1) return null;
|
if(objectId === -1) return null;
|
||||||
|
|
||||||
return <LayoutTrophyView color={ color } customTitle={ badgeName } date={ date } message={ badgeDesc } senderName={ senderName } onCloseClick={ onClose } />;
|
return (
|
||||||
|
<LayoutTrophyView color={ color } customTitle={ badgeName } date={ date } message={ badgeDesc } senderName={ senderName } onCloseClick={ onClose }>
|
||||||
|
<div className="flex justify-center mb-2">
|
||||||
|
<LayoutBadgeImageView badgeCode={ badgeName } showInfo={true} scale={2} />
|
||||||
|
</div>
|
||||||
|
</LayoutTrophyView>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
height: 173px;
|
height: 173px;
|
||||||
color: black;
|
color: black;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
|
z-index: 100;
|
||||||
|
|
||||||
background-position: 0px 0px;
|
background-position: 0px 0px;
|
||||||
background-image: url('@/assets/images/room-widgets/trophy-widget/trophy-spritesheet.png');
|
background-image: url('@/assets/images/room-widgets/trophy-widget/trophy-spritesheet.png');
|
||||||
@@ -32,6 +33,11 @@
|
|||||||
height: 116px;
|
height: 116px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
|
.layout-badge-image-view {
|
||||||
|
z-index: 101;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.trophy-footer {
|
.trophy-footer {
|
||||||
|
|||||||
Reference in New Issue
Block a user