Show custom fields on compact expanded details (#5946)

This commit is contained in:
WithoutPants 2025-06-20 16:04:10 +10:00 committed by GitHub
parent 849a368d3d
commit f81f60e76f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -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>
); );
}); });

View file

@ -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;