Skip to content

Commit

Permalink
Merge pull request #198 from Wakamai-Fondue/fix-prism-updates
Browse files Browse the repository at this point in the history
Fix Prism Vue component not re-rendering
  • Loading branch information
RoelN authored Dec 24, 2024
2 parents ba578d9 + 879b6e3 commit 78043ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/report/StyleSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
<div class="code">
<CopyToClipboard :content="css" />
<Prism language="css">{{ css }}</Prism>
<Prism language="css" :key="{ css }">{{ css }}</Prism>
</div>
</div>
<div v-else>
Expand Down
6 changes: 4 additions & 2 deletions src/components/report/TypeTester.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@
@unlinkOpticalSize="unlinkOpticalSize"
/>
<div class="code">
<Prism language="html" v-if="hasLocalization">{{ html }}</Prism>
<Prism language="html" v-if="hasLocalization" :key="{ html }">{{
html
}}</Prism>
<div class="code-styles">
<CopyToClipboard :content="styles" />
<Prism language="css">{{ styles }}</Prism>
<Prism language="css" :key="{ styles }">{{ styles }}</Prism>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/components/report/VariableControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
</div>
<div class="code" v-if="showStyles">
<CopyToClipboard :content="variableStyles" />
<Prism language="css">{{ variableStyles }}</Prism>
<Prism language="css" :key="{ variableStyles }">{{
variableStyles
}}</Prism>
</div>
</div>
</template>
Expand Down

0 comments on commit 78043ba

Please sign in to comment.