fix: remove weird white rect from the bottom of screenshot export

This commit is contained in:
Pionxzh
2024-02-13 17:20:42 +08:00
parent 3bb0f6d590
commit fdcf86d5d2

View File

@@ -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'};
}