Skip to content

Commit

Permalink
fix: remove weird white rect from the bottom of screenshot export
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Feb 13, 2024
1 parent 3bb0f6d commit fdcf86d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exporter/image.ts
Expand Up @@ -29,7 +29,8 @@ export async function exportToPng(fileNameFormat: string) {
effect.add(() => {
const style = document.createElement('style')
style.textContent = `
[data-testid^="conversation-turn-"] {
main [class^=\'react-scroll-to-bottom\'] > div > div,
[data-testid^="conversation-turn-"] {
color: ${isDarkMode ? '#ececf1' : '#0f0f0f'};
background-color: ${isDarkMode ? 'rgb(52,53,65)' : '#fff'};
}
Expand Down

0 comments on commit fdcf86d

Please sign in to comment.