File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
entry_types/scrolled/package/src/contentElements/externalLinkList/frontend Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 6
6
useContentElementEditorState ,
7
7
useContentElementLifecycle ,
8
8
useDarkBackground ,
9
+ useTheme ,
9
10
contentElementWidthName ,
10
11
contentElementWidths
11
12
} from 'pageflow-scrolled/frontend' ;
@@ -29,6 +30,7 @@ export function ExternalLinkList(props) {
29
30
const linkList = props . configuration . links || [ ] ;
30
31
const { shouldLoad} = useContentElementLifecycle ( ) ;
31
32
const darkBackground = useDarkBackground ( ) ;
33
+ const theme = useTheme ( ) ;
32
34
33
35
const { setTransientState, isSelected} = useContentElementEditorState ( ) ;
34
36
const [ selectedItemId , setSelectedItemId ] = useState ( ) ;
@@ -80,7 +82,8 @@ export function ExternalLinkList(props) {
80
82
const linkAlignment = scrollerEnabled ? 'left' : props . configuration . linkAlignment ;
81
83
82
84
return (
83
- < div className = { classNames ( { [ styles . contentMargin ] : props . customMargin || fullWidth } ) } >
85
+ < div className = { classNames ( { [ styles . contentMargin ] : props . customMargin || fullWidth } ,
86
+ styles [ `scrollButtons-${ theme . options . teasersScrollButtons } ` ] ) } >
84
87
< Scroller enabled = { scrollerEnabled } >
85
88
{ ( { scrollerRef, handleScroll} ) =>
86
89
< div className = { classNames ( styles . container , { [ styles . fullContainer ] : fullWidth } ) } >
Original file line number Diff line number Diff line change 21
21
grid-column : 1 ;
22
22
}
23
23
24
+ .scrollButtons-below > button : first-child ,
25
+ .scrollButtons-below > button {
26
+ grid-column : 2 ;
27
+ grid-row : 2 ;
28
+ justify-self : end;
29
+ width : auto;
30
+ }
31
+
32
+ .scrollButtons-below > button : first-child {
33
+ justify-self : start;
34
+ }
35
+
24
36
.container {
25
37
grid-column : 2 ;
26
38
container-type : inline-size;
You can’t perform that action at this time.
0 commit comments