File tree Expand file tree Collapse file tree 2 files changed +27
-11
lines changed
packages/pf4-component-mapper/src/files Expand file tree Collapse file tree 2 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 77 Bullseye ,
88 Button ,
99 ButtonVariant ,
10+ Flex ,
11+ FlexItem ,
1012 Grid ,
1113 GridItem ,
1214 Text ,
@@ -203,33 +205,33 @@ const DualList = ({
203205 </ Grid >
204206 </ GridItem >
205207 < GridItem md = { 2 } >
206- < Bullseye >
207- < Grid >
208- < GridItem md = { 12 } sm = { 3 } >
208+ < Bullseye className = "ddorg__pf4-component-mapper__dual-list-select-buttons" >
209+ < Flex direction = { { md : 'column' , sm : 'row' } } >
210+ < FlexItem >
209211 < Button disabled = { leftValues . length === 0 } onClick = { handleMoveRight } title = { moveRightTitle } variant = "plain" >
210212 < AngleRightIcon size = "md" />
211213 </ Button >
212- </ GridItem >
214+ </ FlexItem >
213215 { allToRight && (
214- < GridItem md = { 12 } sm = { 3 } >
216+ < FlexItem >
215217 < Button disabled = { leftValues . length === 0 } onClick = { handleClearLeftValues } title = { moveAllRightTitle } variant = "plain" >
216218 < AngleDoubleRightIcon size = "md" />
217219 </ Button >
218- </ GridItem >
220+ </ FlexItem >
219221 ) }
220222 { allToLeft && (
221- < GridItem md = { 12 } sm = { 3 } >
223+ < FlexItem >
222224 < Button disabled = { rightValues . length === 0 } onClick = { handleClearRightValues } title = { moveAllLeftTitle } variant = "plain" >
223225 < AngleDoubleLeftIcon size = "md" />
224226 </ Button >
225- </ GridItem >
227+ </ FlexItem >
226228 ) }
227- < GridItem md = { 12 } sm = { 3 } >
229+ < FlexItem >
228230 < Button disabled = { rightValues . length === 0 } onClick = { handleMoveLeft } title = { moveLeftTitle } variant = "plain" >
229231 < AngleLeftIcon size = "md" />
230232 </ Button >
231- </ GridItem >
232- </ Grid >
233+ </ FlexItem >
234+ </ Flex >
233235 </ Bullseye >
234236 </ GridItem >
235237 < GridItem md = { 5 } >
Original file line number Diff line number Diff line change 2525 background-color : var (--pf-global--active-color--400 );
2626 color : white
2727}
28+
29+ @media only screen and (max-width : 768px ) {
30+ .ddorg__pf4-component-mapper__dual-list-select-buttons {
31+ padding-top : var (--pf-global--gutter--md );
32+ svg {
33+ -webkit-transform : rotate (90deg );
34+ -moz-transform : rotate (90deg );
35+ -ms-transform : rotate (90deg );
36+ -o-transform : rotate (90deg );
37+ transform : rotate (90deg );
38+ display : inline-block ;
39+ }
40+ }
41+ }
You can’t perform that action at this time.
0 commit comments