This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ export default class AiArtifactComponent extends Component {
4949 @action
5050 artifactPanelHover () {
5151 // retrrigger animation
52- const panel = document .querySelector (' .ai-artifact__panel' );
53- panel .style .animation = ' none' ; // Stop the animation
52+ const panel = document .querySelector (" .ai-artifact__panel" );
53+ panel .style .animation = " none" ; // Stop the animation
5454 setTimeout (() => {
55- panel .style .animation = ' ' ; // Re-trigger the animation by removing the none style
55+ panel .style .animation = " " ; // Re-trigger the animation by removing the none style
5656 }, 0 );
5757 }
5858
Original file line number Diff line number Diff line change @@ -8,13 +8,17 @@ function initializeAiArtifacts(api) {
88 return ;
99 }
1010
11- [... element .querySelectorAll (" div.ai-artifact" )].forEach ((artifactElement ) => {
12- const artifactId = artifactElement .getAttribute (" data-ai-artifact-id" );
11+ [... element .querySelectorAll (" div.ai-artifact" )].forEach (
12+ (artifactElement ) => {
13+ const artifactId = artifactElement .getAttribute (
14+ " data-ai-artifact-id"
15+ );
1316
14- helper .renderGlimmer (artifactElement, <template >
17+ helper .renderGlimmer (artifactElement, <template >
1518 <AiArtifact @ artifactId ={{artifactId }} />
1619 </template >);
17- });
20+ }
21+ );
1822 },
1923 {
2024 id: " ai-artifact" ,
You can’t perform that action at this time.
0 commit comments