diff --git a/client/src/pages/organizations/[id]/components/header/index.tsx b/client/src/pages/organizations/[id]/components/header/index.tsx index 6011a898..e760d5d7 100644 --- a/client/src/pages/organizations/[id]/components/header/index.tsx +++ b/client/src/pages/organizations/[id]/components/header/index.tsx @@ -1,3 +1,4 @@ +import cn from "classnames"; import { BadgeGroup, Badge, @@ -10,14 +11,16 @@ import getLangFieldValue from "../../../../../utils/lang"; import { Organization } from "../../../../../types/organization"; import { useIntl } from "react-intl"; import Truncate from "../../../../../components/truncate"; +import styles from "./styles.module.scss"; export default function OrganizationHeader({ data }: { data: Organization }) { const { locale } = useDSFRConfig(); const intl = useIntl(); + const shortLevel = data.level?.match(/\((.*?)\)/)?.[1] || data.level; return (
-
-
+
+
{data?.kind?.map((k) => ( @@ -25,10 +28,9 @@ export default function OrganizationHeader({ data }: { data: Organization }) { ))} {data.level && ( - - {data.level} - - )} + + {shortLevel || data.level} + )} {data.nature && data.nature !== data.level && ( {data.nature} @@ -50,13 +52,12 @@ export default function OrganizationHeader({ data }: { data: Organization }) {
document?.getElementById("structure-logo")?.remove()} />
diff --git a/client/src/pages/organizations/[id]/components/header/styles.module.scss b/client/src/pages/organizations/[id]/components/header/styles.module.scss new file mode 100644 index 00000000..80273751 --- /dev/null +++ b/client/src/pages/organizations/[id]/components/header/styles.module.scss @@ -0,0 +1,19 @@ +.header { + display: flex; + flex-wrap: wrap-reverse; + gap: 2rem; + align-items: center; + + @media screen and (min-width: 768px) { + flex-wrap: nowrap; + } + + .grow { + flex-grow: 1; + } + + .logo { + max-height: 100px !important; + max-width: 250px !important; + } +} \ No newline at end of file diff --git a/client/src/pages/suggest/locales/en.json b/client/src/pages/suggest/locales/en.json index 903a4eee..f75923c7 100644 --- a/client/src/pages/suggest/locales/en.json +++ b/client/src/pages/suggest/locales/en.json @@ -3,9 +3,9 @@ "suggest.breadcrumb.publications": "Search for publications", "suggest.main-search-bar": "Search", "suggest.result-more-than": "More than ", - "suggest.publications.result": "{count, plural, =0 {# publication} one {# publication} other {# publications}} for the search query '{query}'", + "suggest.publications.result": "{count, plural, =0 {# publication} one {# publication} other {# publications}} for the search query {query}", "suggest.results.pagination.next": "Show more results", - "suggest.results.pagination.end": "No additional results for the search query '{query}'", + "suggest.results.pagination.end": "No additional results for the search query {query}", "suggest.list.title": "List of suggested publications", "suggest.list.success": "The list has been successfully submitted", "suggest.list.error": "An error occurred while submitting the list",