File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
canvas_modules/common-canvas/src/palette Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,11 @@ class PaletteFlyoutContent extends React.Component {
145
145
? this . props . paletteHeader
146
146
: null ;
147
147
148
+ let className = "palette-flyout-content" ;
149
+ className += paletteHeader ? " with-palette-header" : "" ;
150
+
148
151
return (
149
- < div className = "palette-flyout-content" >
152
+ < div className = { className } >
150
153
{ contentSearch }
151
154
{ paletteHeader }
152
155
{ contentCategories }
Original file line number Diff line number Diff line change @@ -57,11 +57,17 @@ $palette-dialog-list-item-height: 46px;
57
57
height : 100% ;
58
58
}
59
59
60
+ // Overrides the grid-template-rows for when a palette header object is
61
+ // included. (This fixes a problem specifically on Safari.)
62
+ .palette-flyout-content.with-palette-header {
63
+ grid-template-rows : $palette-search-container-height auto 1fr ;
64
+ }
65
+
60
66
.palette-flyout-content {
61
67
position : absolute ; // Needed to allow the scroll of categories/nodes to work.
62
68
height : 100% ;
63
69
display : grid ;
64
- grid-template-rows : $palette-search-container-height auto 1fr ;
70
+ grid-template-rows : $palette-search-container-height 1fr ;
65
71
// grid-template-columns is set based on narrow or open palette
66
72
67
73
.palette-scroll {
You can’t perform that action at this time.
0 commit comments