Skip to content

Commit

Permalink
Merge pull request #647 from SUI-Components/feat/improve-perf-dynamic…
Browse files Browse the repository at this point in the history
…-rendering

feat(components/perf/dynamicRendering): small improvements for cls
  • Loading branch information
andresz1 authored Feb 15, 2024
2 parents e4a84c8 + b602ae3 commit 71021c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/perf/dynamicRendering/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function PerfDynamicRendering({
)
} else if (placeholder) {
// so, we're on the server side or the component is disabled
return placeholder
return <div className="sui-PerfDynamicRendering-placeholder">{placeholder}</div>
} else {
return <div style={{containIntrinsicSize: `auto ${height}px`, height: `${height}px`, marginBottom: '1px'}} />
}
Expand Down
1 change: 1 addition & 0 deletions components/perf/dynamicRendering/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.sui-PerfDynamicRendering-placeholder {
content-visibility: auto;
width: 100%;
}

0 comments on commit 71021c6

Please sign in to comment.