mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +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> =
|
||||
PatchComponent("PerformerDetailsPanel", (props) => {
|
||||
const { performer, fullWidth } = props;
|
||||
const { performer, fullWidth, collapsed } = props;
|
||||
|
||||
// Network state
|
||||
const intl = useIntl();
|
||||
|
|
@ -177,7 +177,9 @@ export const PerformerDetailsPanel: React.FC<IPerformerDetails> =
|
|||
value={renderStashIDs()}
|
||||
fullWidth={fullWidth}
|
||||
/>
|
||||
{fullWidth && <CustomFields values={performer.custom_fields} />}
|
||||
{(fullWidth || !collapsed) && (
|
||||
<CustomFields values={performer.custom_fields} />
|
||||
)}
|
||||
</PerformerDetailGroup>
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -710,6 +710,10 @@ button.btn.favorite-button {
|
|||
}
|
||||
}
|
||||
|
||||
.custom-fields {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.custom-fields .detail-item .detail-item-title {
|
||||
max-width: 130px;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
Loading…
Reference in a new issue