mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
fix the vorepanel (#16565)
This commit is contained in:
@@ -36,15 +36,15 @@ export const VoreInsidePanel = (props: {
|
||||
and you are
|
||||
</Box>
|
||||
|
||||
<Box color={digestModeToColor[belly_mode]} inline>
|
||||
{digestModeToPreyMode[belly_mode]}
|
||||
<Box color={digestModeToColor[belly_mode!]} inline>
|
||||
{digestModeToPreyMode[belly_mode!]}
|
||||
</Box>
|
||||
|
||||
<Box color="label">{desc}</Box>
|
||||
{(contents.length && (
|
||||
{(contents!.length && (
|
||||
<Collapsible title="Belly Contents">
|
||||
<VoreContentsPanel
|
||||
contents={contents}
|
||||
contents={contents!}
|
||||
belly={ref}
|
||||
show_pictures={show_pictures}
|
||||
/>
|
||||
|
||||
@@ -66,7 +66,7 @@ export const VorePanel = (props) => {
|
||||
)) ||
|
||||
''}
|
||||
</Stack.Item>
|
||||
<Stack.Item basis={inside?.desc.length > 500 ? '30%' : '20%'}>
|
||||
<Stack.Item basis={inside?.desc?.length || 0 > 500 ? '30%' : '20%'}>
|
||||
<VoreInsidePanel inside={inside} show_pictures={show_pictures} />
|
||||
</Stack.Item>
|
||||
<Stack.Item>
|
||||
|
||||
@@ -25,12 +25,12 @@ export type hostMob = {
|
||||
|
||||
export type insideData = {
|
||||
absorbed: BooleanLike;
|
||||
belly_name: string;
|
||||
belly_mode: string;
|
||||
desc: string;
|
||||
pred: string;
|
||||
ref: string;
|
||||
contents: contentData[];
|
||||
belly_name?: string;
|
||||
belly_mode?: string;
|
||||
desc?: string;
|
||||
pred?: string;
|
||||
ref?: string;
|
||||
contents?: contentData[];
|
||||
};
|
||||
|
||||
export type contentData = {
|
||||
|
||||
Reference in New Issue
Block a user