mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-11 21:40:57 +08:00
style: adjust for mp.weixin.qq (#323)
This commit is contained in:
@@ -181,7 +181,7 @@ export const config = {
|
||||
},
|
||||
'mp.weixin.qq': {
|
||||
inputQuery: weixin.inputQuery,
|
||||
sidebarContainerQuery: [],
|
||||
sidebarContainerQuery: ['.qr_code_pc', '#js_content'],
|
||||
appendContainerQuery: [],
|
||||
resultsContainerQuery: ['#js_content'],
|
||||
},
|
||||
|
||||
@@ -8,6 +8,17 @@ export default {
|
||||
if (title && description) {
|
||||
const author = document.querySelector('#js_name')?.textContent
|
||||
|
||||
const sidebar = document.querySelector('.qr_code_pc')
|
||||
if (sidebar) {
|
||||
sidebar.style.right = '-400px'
|
||||
sidebar.style.width = '400px'
|
||||
sidebar.style.textAlign = 'left'
|
||||
sidebar.style.alignItems = 'center'
|
||||
sidebar.style.display = 'flex'
|
||||
sidebar.style.flexDirection = 'column'
|
||||
sidebar.style.background = 'transparent'
|
||||
}
|
||||
|
||||
return cropText(
|
||||
`以下是一篇文章,标题是:"${title}",文章来源是:"${author}公众号",内容是:\n"${description}".请以如下格式输出你的回答:
|
||||
{文章来源和文章摘要}
|
||||
|
||||
Reference in New Issue
Block a user