Added path column to tables in list view (#5005)

This commit is contained in:
CJ
2024-06-23 22:39:32 -05:00
committed by GitHub
parent a4e25f32ea
commit 1f5377da1c
3 changed files with 65 additions and 2 deletions

View File

@@ -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" }),