Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2270 Canvas palette not loading/displayed in Safari browser #2278

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ class PaletteFlyoutContent extends React.Component {
? this.props.paletteHeader
: null;

let className = "palette-flyout-content";
className += paletteHeader ? " with-palette-header" : "";

return (
<div className="palette-flyout-content">
<div className={className}>
{contentSearch}
{paletteHeader}
{contentCategories}
Expand Down
8 changes: 7 additions & 1 deletion canvas_modules/common-canvas/src/palette/palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ $palette-dialog-list-item-height: 46px;
height: 100%;
}

// Overrides the grid-template-rows for when a palette header object is
// included. (This fixes a problem specifically on Safari.)
.palette-flyout-content.with-palette-header {
grid-template-rows: $palette-search-container-height auto 1fr;
}

.palette-flyout-content {
position: absolute; // Needed to allow the scroll of categories/nodes to work.
height: 100%;
display: grid;
grid-template-rows: $palette-search-container-height auto 1fr;
grid-template-rows: $palette-search-container-height 1fr;
// grid-template-columns is set based on narrow or open palette

.palette-scroll {
Expand Down
Loading