diff --git a/CHANGELOG.md b/CHANGELOG.md index d1437ec9..b9219904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,32 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -### [0.2.89](https://github.com/eea/volto-cca-policy/compare/0.2.88...0.2.89) - 7 January 2025 +### [0.2.90](https://github.com/eea/volto-cca-policy/compare/0.2.89...0.2.90) - 8 January 2025 + +#### :rocket: New Features + +- feat(view): move health specific metadata to a separate box [kreafox - [`2df42f7`](https://github.com/eea/volto-cca-policy/commit/2df42f755e13db8337e5e06b32b29aefeb964460)] + +#### :bug: Bug Fixes + +- fix: remove observatory-specific links from listings [kreafox - [`bc8c9a0`](https://github.com/eea/volto-cca-policy/commit/bc8c9a0dc843b04dac90ab91af89c1676b3b3d2e)] +- fix: cleanup import [kreafox - [`d7ee4bf`](https://github.com/eea/volto-cca-policy/commit/d7ee4bf9e7a5fe7bb3f199f630dc817d0bb73d63)] + +#### :nail_care: Enhancements + +- change(view): show lead image caption in the title block [kreafox - [`3d529a0`](https://github.com/eea/volto-cca-policy/commit/3d529a05cfc31d3e8e9d10acd3de557d0af254ae)] +- change: simplify URL construction by removing observatory-specific logic in language switcher [kreafox - [`63f087f`](https://github.com/eea/volto-cca-policy/commit/63f087fbb8b3c83c1bbb8cf546362dd4d402f762)] +- change(view): show health specific info on database item view [kreafox - [`443eca2`](https://github.com/eea/volto-cca-policy/commit/443eca2acabeada5bb076ce29c15b89ed3442a06)] + +#### :house: Internal changes + +- style: move styling to theme folder [kreafox - [`8f44461`](https://github.com/eea/volto-cca-policy/commit/8f444616f5cf6dc0ab9b4f95f9e97ae8436be9fc)] + +#### :hammer_and_wrench: Others + +- Refs #282067 - search engine remove ++aq link update [Tripon Eugen - [`c9a45bb`](https://github.com/eea/volto-cca-policy/commit/c9a45bb3aadd293746193fd361684e39432d596c)] +- core: code cleanup [kreafox - [`c6bb867`](https://github.com/eea/volto-cca-policy/commit/c6bb8676b954236279587286052e3b4a7175c31b)] +### [0.2.89](https://github.com/eea/volto-cca-policy/compare/0.2.88...0.2.89) - 8 January 2025 #### :hammer_and_wrench: Others @@ -1740,10 +1765,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)] - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)] - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)] +- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)] +- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)] ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023 #### :house: Internal changes +- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)] - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)] #### :hammer_and_wrench: Others @@ -1760,6 +1788,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)] - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)] - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)] +- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)] +- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)] +- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)] - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)] - Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)] - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)] @@ -1976,6 +2007,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :house: Internal changes +- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)] #### :hammer_and_wrench: Others @@ -2456,6 +2488,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)] +- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)] ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022 #### :hammer_and_wrench: Others diff --git a/package.json b/package.json index 03d90961..57a2849d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-cca-policy", - "version": "0.2.89", + "version": "0.2.90", "description": "@eeacms/volto-cca-policy: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/Result/ClusterHorizontalCardItem.jsx b/src/components/Result/ClusterHorizontalCardItem.jsx index e5b258b9..2c2af3b7 100644 --- a/src/components/Result/ClusterHorizontalCardItem.jsx +++ b/src/components/Result/ClusterHorizontalCardItem.jsx @@ -13,13 +13,6 @@ import ExternalLink from '@eeacms/search/components/Result/ExternalLink'; import ResultContext from '@eeacms/search/components/Result/ResultContext'; import ContentClusters from '@eeacms/search/components/Result/ContentClusters'; -const healthURL = (href, is_observatory) => { - if (is_observatory) { - return href.replace(/\/metadata\//, '/observatory/++aq++metadata/'); - } - return href; -}; - const healthBreadcrumb = (href, is_observatory) => { // It's only cosmetic. We don't want to show ++aq... if (is_observatory) { @@ -52,7 +45,7 @@ const ExtraContent = (props) => {
Source: - + {title} {/* {firstWords( @@ -99,10 +92,7 @@ const ClusterHorizontalCardItem = (props) => { '@id': result.href, title: ( <> - + {result.title} {result.isNew && } {result.isExpired && ( diff --git a/src/components/Result/HealthHorizontalCardItem.jsx b/src/components/Result/HealthHorizontalCardItem.jsx index 8acf62de..28caaba8 100644 --- a/src/components/Result/HealthHorizontalCardItem.jsx +++ b/src/components/Result/HealthHorizontalCardItem.jsx @@ -14,10 +14,6 @@ import ExternalLink from '@eeacms/search/components/Result/ExternalLink'; import ResultContext from '@eeacms/search/components/Result/ResultContext'; import ContentClusters from '@eeacms/search/components/Result/ContentClusters'; -const healthURL = (href) => { - return href.replace(/\/metadata\//, '/observatory/++aq++metadata/'); -}; - const healthBreadcrumb = (href) => { // It's only cosmetic. We don't want to show ++aq... return href.replace(/\/metadata\//, '/observatory/'); @@ -40,7 +36,7 @@ const ExtraContent = (props) => {
Source: - + {firstWords( getTermDisplayValue({ @@ -75,7 +71,7 @@ const HealthHorizontalCardItem = (props) => { '@id': result.href, title: ( <> - + {result.title} {result.isNew && } {result.isExpired && ( diff --git a/src/components/manage/Blocks/Listing/IndicatorCardsListingView.jsx b/src/components/manage/Blocks/Listing/IndicatorCardsListingView.jsx index 64105439..36865abe 100644 --- a/src/components/manage/Blocks/Listing/IndicatorCardsListingView.jsx +++ b/src/components/manage/Blocks/Listing/IndicatorCardsListingView.jsx @@ -5,7 +5,6 @@ import { compose } from 'redux'; import cx from 'classnames'; import { ConditionalLink } from '@plone/volto/components'; import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers'; -import { makeObservatoryMetadataURL } from '@eeacms/volto-cca-policy/helpers'; import './styles.less'; const fixedTitles = { @@ -28,9 +27,7 @@ const IndicatorCardsListingView = ({ items, isEditMode, token }) => {
diff --git a/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx b/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx index ab6729f2..cfa83ab8 100644 --- a/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx +++ b/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx @@ -1,9 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { - makeContributionsSearchQuery, - makeObservatoryMetadataURL, -} from '@eeacms/volto-cca-policy/helpers'; +import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers'; import { UniversalLink } from '@plone/volto/components'; import './styles.less'; @@ -25,10 +22,7 @@ const OrganisationCardsListingView = ({ items }) => {
- +
{ {item.title} diff --git a/src/components/theme/Header/LanguageSwitch.jsx b/src/components/theme/Header/LanguageSwitch.jsx index 9708c30c..cd00ab4f 100644 --- a/src/components/theme/Header/LanguageSwitch.jsx +++ b/src/components/theme/Header/LanguageSwitch.jsx @@ -5,12 +5,7 @@ import { useSelector } from 'react-redux'; import { Dropdown, Image } from 'semantic-ui-react'; import { flattenToAppURL } from '@plone/volto/helpers'; import config from '@plone/volto/registry'; -import { useLocation } from 'react-router-dom'; import { Header } from '@eeacms/volto-eea-design-system/ui'; -import { - isObservatoryMetadataURL, - makeObservatoryMetadataURL, -} from '@eeacms/volto-cca-policy/helpers'; import cx from 'classnames'; import { selectedLanguageAtom } from '../../../state'; @@ -18,8 +13,6 @@ import globeIcon from '@eeacms/volto-eea-design-system/../theme/themes/eea/asset export default function LanguageSwitch({ history }) { const { eea } = config.settings; - const location = useLocation(); - const isObservatoryItem = isObservatoryMetadataURL(location.pathname); const translations = useSelector( (state) => state.content.data?.['@components']?.translations?.items, ); @@ -39,14 +32,13 @@ export default function LanguageSwitch({ history }) { const url = translation ? flattenToAppURL(translation['@id']) : `/${item.code}`; - const to = isObservatoryItem ? makeObservatoryMetadataURL(url) : url; setLanguage(item.code); setSelectedLanguage(item.code); searchParams.set('set_language', item.code); history.push({ - pathname: to, + pathname: url, search: searchParams.toString(), }); }; diff --git a/src/components/theme/Views/CaseStudyView.jsx b/src/components/theme/Views/CaseStudyView.jsx index a7aa7464..d03ed07d 100644 --- a/src/components/theme/Views/CaseStudyView.jsx +++ b/src/components/theme/Views/CaseStudyView.jsx @@ -24,8 +24,6 @@ import { ListItem, } from 'semantic-ui-react'; -import './CaseStudyView.less'; - const messages = defineMessages({ References: { id: 'References', defaultMessage: 'References' }, Challenges: { id: 'Challenges', defaultMessage: 'Challenges' }, diff --git a/src/components/theme/Views/CaseStudyView.less b/src/components/theme/Views/CaseStudyView.less deleted file mode 100644 index 2c122f0e..00000000 --- a/src/components/theme/Views/CaseStudyView.less +++ /dev/null @@ -1,8 +0,0 @@ -.db-item-view.case-study-view { - div { - img.db-logo { - padding-left: 5px; - float: right !important; - } - } -} diff --git a/src/components/theme/Views/DatabaseItemView.jsx b/src/components/theme/Views/DatabaseItemView.jsx index e0c0549b..63563d71 100644 --- a/src/components/theme/Views/DatabaseItemView.jsx +++ b/src/components/theme/Views/DatabaseItemView.jsx @@ -1,16 +1,12 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import { useLocation } from 'react-router-dom'; import { PrivacyProtection } from '@eeacms/volto-embed'; import { Container, Divider, Grid } from 'semantic-ui-react'; import { ShareInfoButton, PortalMessage, } from '@eeacms/volto-cca-policy/components'; -import { - isObservatoryMetadataURL, - fixEmbedURL, -} from '@eeacms/volto-cca-policy/helpers'; +import { fixEmbedURL } from '@eeacms/volto-cca-policy/helpers'; import { TOOL, GUIDANCE, @@ -143,8 +139,6 @@ const MaybeIframeVisualization = ({ content }) => { const DatabaseItemView = (props) => { const { content } = props; const type = content['@type']; - const location = useLocation(); - const isObservatoryItem = isObservatoryMetadataURL(location.pathname); const { title, acronym, @@ -269,19 +263,15 @@ const DatabaseItemView = (props) => { )} - {isObservatoryItem && ( + {organisational_key_activities && ( <> - {organisational_key_activities && ( - <> -

- -

- - - )} +

+ +

+ )} @@ -292,31 +282,27 @@ const DatabaseItemView = (props) => { - {isObservatoryItem && ( + {organisational_websites && ( <> - {organisational_websites && ( - <> -
- -
- - - )} +
+ +
+ + + )} - {organisational_contact_information && ( - <> -
- -
- - - )} + {organisational_contact_information && ( + <> +
+ +
+ )} diff --git a/src/components/theme/Views/EventView.jsx b/src/components/theme/Views/EventView.jsx index cc1d202d..6982ce98 100644 --- a/src/components/theme/Views/EventView.jsx +++ b/src/components/theme/Views/EventView.jsx @@ -19,6 +19,13 @@ function EventView(props) { hasBlockTypes, } = filterBlocks(content, ['tabs_block', 'metadataSection']); + const titleBlock = Object.values(content.blocks).find( + (block) => block['@type'] === 'title', + ); + if (titleBlock && !titleBlock.copyright && content.image_caption) { + titleBlock.copyright = content.image_caption; + } + return (
diff --git a/src/components/theme/Views/NewsItemView.jsx b/src/components/theme/Views/NewsItemView.jsx index 47280085..f66dae89 100644 --- a/src/components/theme/Views/NewsItemView.jsx +++ b/src/components/theme/Views/NewsItemView.jsx @@ -17,13 +17,12 @@ const DescriptionText = ({ content }) => { function NewsItemView(props) { const { content } = props; - // if (content.image_caption) { - // Object.values(content.blocks).forEach((block) => { - // if (block['@type'] === 'title' && !block.copyright?.trim()) { - // block.copyright = content.image_caption; - // } - // }); - // } + const titleBlock = Object.values(content.blocks).find( + (block) => block['@type'] === 'title', + ); + if (titleBlock && !titleBlock.copyright && content.image_caption) { + titleBlock.copyright = content.image_caption; + } // These blocks are used in the Edit View for dexterity layout. // We don't want to display them in the View mode. diff --git a/src/components/theme/Views/__snapshots__/AdaptationOptionView.test.jsx.snap b/src/components/theme/Views/__snapshots__/AdaptationOptionView.test.jsx.snap index 70cc8522..edfe8017 100644 --- a/src/components/theme/Views/__snapshots__/AdaptationOptionView.test.jsx.snap +++ b/src/components/theme/Views/__snapshots__/AdaptationOptionView.test.jsx.snap @@ -203,41 +203,37 @@ exports[`AdaptationOptionView should render the component 1`] = ` className="four wide computer twelve wide mobile twelve wide tablet column col-right" >
+
+ Date of creation: +
+

+ NaN + +

+
+ IPCC adaptation options categories: +
+

+ Structural and physical: Ecosystem-based adaptation options +

+
+ Geographic characterisation: +
-
- Date of creation: -

- NaN - -

-
- IPCC adaptation options categories: -
-

- Structural and physical: Ecosystem-based adaptation options + Global

-
- Geographic characterisation: -
-
-

- Global -

-
diff --git a/src/components/theme/Views/__snapshots__/CaseStudyView.test.jsx.snap b/src/components/theme/Views/__snapshots__/CaseStudyView.test.jsx.snap index fb9d9183..f68634d6 100644 --- a/src/components/theme/Views/__snapshots__/CaseStudyView.test.jsx.snap +++ b/src/components/theme/Views/__snapshots__/CaseStudyView.test.jsx.snap @@ -125,35 +125,31 @@ exports[`CaseStudyView should render the component 1`] = ` className="four wide computer twelve wide mobile twelve wide tablet column col-right" >
+
+ Date of creation: +
+

+ NaN + +

+
+ Geographic characterisation: +
-
- Date of creation: -

- NaN - + Global

-
- Geographic characterisation: -
-
-

- Global -

-
diff --git a/src/components/theme/Views/__snapshots__/DatabaseItemView.test.jsx.snap b/src/components/theme/Views/__snapshots__/DatabaseItemView.test.jsx.snap index e399deb3..5d51ece1 100644 --- a/src/components/theme/Views/__snapshots__/DatabaseItemView.test.jsx.snap +++ b/src/components/theme/Views/__snapshots__/DatabaseItemView.test.jsx.snap @@ -149,41 +149,37 @@ exports[`DatabaseItemView should render the component 1`] = ` className="four wide computer twelve wide mobile twelve wide tablet column col-right" >
+
+ Date of creation: +
+

+ NaN + +

+
+ Keywords: +
+ + keyword 1, keyword 2 + +
+ Geographic characterisation: +
-
- Date of creation: -

- NaN - + Global

-
- Keywords: -
- - keyword 1, keyword 2 - -
- Geographic characterisation: -
-
-

- Global -

-
diff --git a/src/components/theme/Views/__snapshots__/ProjectView.test.jsx.snap b/src/components/theme/Views/__snapshots__/ProjectView.test.jsx.snap index 63862e3f..dddaf9c0 100644 --- a/src/components/theme/Views/__snapshots__/ProjectView.test.jsx.snap +++ b/src/components/theme/Views/__snapshots__/ProjectView.test.jsx.snap @@ -101,35 +101,31 @@ exports[`ProjectView should render the component 1`] = ` className="four wide computer twelve wide mobile twelve wide tablet column col-right" >
+
+ Date of creation: +
+

+ NaN + +

+
+ Geographic characterisation: +
-
- Date of creation: -

- NaN - + Global

-
- Geographic characterisation: -
-
-

- Global -

-
diff --git a/src/helpers/ContentMetadata.jsx b/src/helpers/ContentMetadata.jsx index 1a44e949..b5b4ddd4 100644 --- a/src/helpers/ContentMetadata.jsx +++ b/src/helpers/ContentMetadata.jsx @@ -1,5 +1,4 @@ import { Fragment } from 'react'; -import { useLocation } from 'react-router-dom'; import { Popup, Segment } from 'semantic-ui-react'; import { useIntl, defineMessages, FormattedMessage } from 'react-intl'; import { @@ -13,10 +12,7 @@ import { INDICATOR, PUBLICATION_REPORT, } from '@eeacms/volto-cca-policy/helpers/Constants'; -import { - isObservatoryMetadataURL, - MetadataItemList, -} from '@eeacms/volto-cca-policy/helpers'; +import { MetadataItemList } from '@eeacms/volto-cca-policy/helpers'; const messages = defineMessages({ default_info_tooltip: { @@ -328,8 +324,6 @@ function ContentMetadata(props) { funding_programme, } = content; const type = content['@type']; - const location = useLocation(); - const isObservatoryItem = isObservatoryMetadataURL(location.pathname); const hasGeoChars = geochars !== null || spatial_layer.length > 0; const dateTitles = { @@ -343,30 +337,14 @@ function ContentMetadata(props) { const dateTitle = dateTitles[type] || dateTitles.default; return ( - -
+ <> + - {isObservatoryItem && ( - <> - {health_impacts && health_impacts?.length > 0 && ( - <> -
- -
- - - )} - - )} - {keywords && keywords?.length > 0 && ( <>
@@ -400,40 +378,36 @@ function ContentMetadata(props) { )} - {!isObservatoryItem && ( + {climate_impacts && climate_impacts?.length > 0 && ( + <> +
+ +
+ + + )} + + {elements && elements?.length > 0 && ( + <> +
+ +
+ + + )} + + {sectors && sectors?.length > 0 && ( <> - {climate_impacts && climate_impacts?.length > 0 && ( - <> -
- -
- - - )} - - {elements && elements?.length > 0 && ( - <> -
- -
- - - )} - - {sectors && sectors?.length > 0 && ( - <> -
- -
- - - )} +
+ +
+ )} @@ -449,19 +423,15 @@ function ContentMetadata(props) { )} - {!isObservatoryItem && ( + {funding_programme && funding_programme?.title?.length > 0 && ( <> - {funding_programme && funding_programme?.title?.length > 0 && ( - <> -
- -
- {funding_programme.title} - - )} +
+ +
+ {funding_programme.title} )} @@ -485,8 +455,20 @@ function ContentMetadata(props) { )} -
-
+ + + {health_impacts && health_impacts?.length > 0 && ( + +
+ +
+ +
+ )} + ); } diff --git a/src/helpers/index.js b/src/helpers/index.js index b15c48f3..427a4ce3 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -57,14 +57,6 @@ export const makeContributionsSearchQuery = (props) => { return url; }; -export const isObservatoryMetadataURL = (url) => { - return url.indexOf('/observatory/++aq++metadata') > -1; -}; - -export const makeObservatoryMetadataURL = (url) => { - return url.replace('/metadata/', '/observatory/++aq++metadata/'); -}; - export const fixEmbedURL = (url, is_cmshare_video) => { const suffix = '/download'; if (is_cmshare_video && !url.includes(suffix)) { diff --git a/theme/globals/views.less b/theme/globals/views.less index 2d43c3ca..e8281137 100644 --- a/theme/globals/views.less +++ b/theme/globals/views.less @@ -96,6 +96,15 @@ hr { .db-item-view { position: relative; + &.case-study-view { + div { + img.db-logo { + padding-left: 5px; + float: right !important; + } + } + } + .privacy-protection-wrapper { margin-top: 1.5em; margin-bottom: 1.5em;