diff --git a/app/src/components/Files.js b/app/src/components/Files.js index 1fff0da8..1d4fec11 100644 --- a/app/src/components/Files.js +++ b/app/src/components/Files.js @@ -460,10 +460,10 @@ export function FilesSearchView({ searchFiles, activePage, totalPages, + null, + null, + null, setPage, - null, - null, - null, true, ); diff --git a/app/src/components/Headline.js b/app/src/components/Headline.js index 585b3d33..6948beae 100644 --- a/app/src/components/Headline.js +++ b/app/src/components/Headline.js @@ -2,10 +2,11 @@ import {CardIcon, Header, Placeholder, Segment} from "./Theme"; import {PlaceholderLine, Item, Image} from "semantic-ui-react"; import React from "react"; import {ThemeContext} from "../contexts/contexts"; -import {encodeMediaPath, FileIcon, findPosterPath, isoDatetimeToString, PreviewLink} from "./Common"; +import {encodeMediaPath, FileIcon, findPosterPath, PreviewLink} from "./Common"; import {Link} from "react-router-dom"; import _ from "lodash"; import Grid from "semantic-ui-react/dist/commonjs/collections/Grid"; +import {FileRowTagIcon} from "./Files"; const HeadlineParagraph = ({headline}) => { const {s} = React.useContext(ThemeContext); @@ -13,12 +14,13 @@ const HeadlineParagraph = ({headline}) => { headline = headline.replaceAll('', ''); headline = headline.replaceAll('', ''); headline = headline.replaceAll('\n', '
'); + // Postgres inserts ... tags which we will use. return

} } const FileHeadline = ({file, to}) => { - const {title_headline, b_headline, c_headline, d_headline} = file; + const {title, name, title_headline, b_headline, c_headline, d_headline} = file; let poster; const posterPath = findPosterPath(file); @@ -29,12 +31,15 @@ const FileHeadline = ({file, to}) => { poster = ; } - let header = ; + let header = title || name; + if (title_headline) { + header = ; + } if (to) { header = } - let body =

No highlights

+ let body =

No highlights available.

; if (b_headline || c_headline || d_headline) { body = <> @@ -48,7 +53,10 @@ const FileHeadline = ({file, to}) => { {poster} - {header} + + + {header} +