mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Show custom fields on compact expanded details (#5946)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user