mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Show custom fields on compact expanded details (#5946)
This commit is contained in:
parent
849a368d3d
commit
f81f60e76f
2 changed files with 8 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ const PerformerDetailGroup: React.FC<PropsWithChildren<IPerformerDetails>> =
|
||||||
|
|
||||||
export const PerformerDetailsPanel: React.FC<IPerformerDetails> =
|
export const PerformerDetailsPanel: React.FC<IPerformerDetails> =
|
||||||
PatchComponent("PerformerDetailsPanel", (props) => {
|
PatchComponent("PerformerDetailsPanel", (props) => {
|
||||||
const { performer, fullWidth } = props;
|
const { performer, fullWidth, collapsed } = props;
|
||||||
|
|
||||||
// Network state
|
// Network state
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
@ -177,7 +177,9 @@ export const PerformerDetailsPanel: React.FC<IPerformerDetails> =
|
||||||
value={renderStashIDs()}
|
value={renderStashIDs()}
|
||||||
fullWidth={fullWidth}
|
fullWidth={fullWidth}
|
||||||
/>
|
/>
|
||||||
{fullWidth && <CustomFields values={performer.custom_fields} />}
|
{(fullWidth || !collapsed) && (
|
||||||
|
<CustomFields values={performer.custom_fields} />
|
||||||
|
)}
|
||||||
</PerformerDetailGroup>
|
</PerformerDetailGroup>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -710,6 +710,10 @@ button.btn.favorite-button {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-fields {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.custom-fields .detail-item .detail-item-title {
|
.custom-fields .detail-item .detail-item-title {
|
||||||
max-width: 130px;
|
max-width: 130px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue