File tree Expand file tree Collapse file tree
collection/featured-items
edit-collection-featured-items/featured-items-form/preview-carousel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 137137 margin : 0 ;
138138 font-size : 14px ;
139139 }
140+
141+ // Both of these are only beacuse block codes make card overflow
142+ :global .rte- code- block {
143+ white-space : pre-wrap ;
144+ word-break : break-word ;
145+ }
146+
147+ :global .rte- code- block code {
148+ white-space : pre-wrap ;
149+ word-break : break-word ;
150+ }
140151 }
141152
142153 .footer {
Original file line number Diff line number Diff line change 1- @use ' sass:color' ;
2- @import ' node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module' ;
3-
41.preview-carousel-accordion {
52 margin-bottom : 1rem ;
63
107
118 .accordion-body {
129 padding : 0 ;
13- padding-top : 2rem ;
14- background-color : color .adjust ($dv-secondary-color , $lightness : 10% );
1510 }
1611}
Original file line number Diff line number Diff line change 11import { useWatch } from 'react-hook-form'
22import { useTranslation } from 'react-i18next'
33import { Accordion } from '@iqss/dataverse-design-system'
4- import { CollectionFeaturedItem } from '@/collection/domain/models/CollectionFeaturedItem'
4+ import {
5+ CollectionFeaturedItem ,
6+ CustomFeaturedItem
7+ } from '@/collection/domain/models/CollectionFeaturedItem'
8+ import { FeaturedItemView } from '@/sections/featured-item/featured-item-view/FeaturedItemView'
59import { FeaturedItemsFormHelper } from '../FeaturedItemsFormHelper'
610import { FeaturedItemField } from '../../types'
711import { Slider } from './slider/Slider'
@@ -26,10 +30,10 @@ export const PreviewCarousel = () => {
2630 dotLabel = { tCollection ( 'featuredItems.slider.dotLabel' ) }
2731 dataTestId = "featured-items-slider"
2832 items = { formFieldsToFeaturedItems . map ( ( featuredItem ) => (
29- < div key = { featuredItem . id } >
30- Mock, here we need to use the Featured Item Page component or something similar.
31- { /* <FeaturedItemCard featuredItem={featuredItem} key={featuredItem.id} /> */ }
32- </ div >
33+ < FeaturedItemView
34+ key = { featuredItem . id }
35+ featuredItem = { featuredItem as CustomFeaturedItem }
36+ / >
3337 ) ) }
3438 />
3539 </ Accordion . Body >
Original file line number Diff line number Diff line change 3535 flex : 0 0 100% ;
3636 scroll-snap-align : start ;
3737 justify-content : center ;
38- max-height : 100% ;
38+ max-height : 70vh ;
39+ padding-inline : 1.5rem ;
3940 overflow-x : hidden ;
4041 }
4142 }
You can’t perform that action at this time.
0 commit comments