mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Added path column to tables in list view (#5005)
This commit is contained in:
@@ -226,7 +226,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
);
|
||||
|
||||
const AudioCodecCell = (scene: GQL.SlimSceneDataFragment) => (
|
||||
<ul className="comma-list">
|
||||
<ul className="comma-list over">
|
||||
{scene.files.map((file) => (
|
||||
<li key={file.id}>
|
||||
<span>{file.audio_codec}</span>
|
||||
@@ -245,6 +245,16 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
</ul>
|
||||
);
|
||||
|
||||
const PathCell = (scene: GQL.SlimSceneDataFragment) => (
|
||||
<ul className="newline-list overflowable TruncatedText">
|
||||
{scene.files.map((file) => (
|
||||
<li key={file.id}>
|
||||
<span>{file.path}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
|
||||
interface IColumnSpec {
|
||||
value: string;
|
||||
label: string;
|
||||
@@ -343,6 +353,11 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
label: intl.formatMessage({ id: "resolution" }),
|
||||
render: ResolutionCell,
|
||||
},
|
||||
{
|
||||
value: "path",
|
||||
label: intl.formatMessage({ id: "path" }),
|
||||
render: PathCell,
|
||||
},
|
||||
{
|
||||
value: "filesize",
|
||||
label: intl.formatMessage({ id: "filesize" }),
|
||||
|
||||
Reference in New Issue
Block a user