From bacb1c3a7677d1d6746db72914e8ef3e5bad040c Mon Sep 17 00:00:00 2001 From: JimmyLv Date: Fri, 3 Mar 2023 01:51:17 +0800 Subject: [PATCH] fix: styling of buttons --- components/Sentence.tsx | 2 +- pages/[...slug].tsx | 21 +++++++++++++-------- pages/api/summarize.ts | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/components/Sentence.tsx b/components/Sentence.tsx index 76d63a7a..1fc31178 100644 --- a/components/Sentence.tsx +++ b/components/Sentence.tsx @@ -20,7 +20,7 @@ export default function Sentence({ href={`${encodeURI(`${baseUrl}/?t=${seconds}`)}`} target="_blank" rel="noopener noreferrer" - className="text-sky-400 hover:text-sky-600" + className="z-10 text-sky-400 hover:text-sky-600" > {timestamp} diff --git a/pages/[...slug].tsx b/pages/[...slug].tsx index d937adcf..69b81399 100644 --- a/pages/[...slug].tsx +++ b/pages/[...slug].tsx @@ -255,7 +255,10 @@ export const Home: NextPage = () => { {`【📝 总结:${currentBvId}】`} -
+
{summaryArray.map((sentence, index) => (
{sentence.length > 0 && ( @@ -266,19 +269,21 @@ export const Home: NextPage = () => {
- 一键(三连+关注) + (关注我 😛) - + 回到视频 +
)} diff --git a/pages/api/summarize.ts b/pages/api/summarize.ts index a1041b3a..b5a2ff39 100644 --- a/pages/api/summarize.ts +++ b/pages/api/summarize.ts @@ -73,7 +73,7 @@ export default async function handler( }); // console.log("========transcripts========", transcripts); const text = getChunckedTranscripts(transcripts, transcripts); - const prompt = getSummaryPrompt(title, text, true); + const prompt = getSummaryPrompt(title, text); try { apiKey && console.log("========use user apiKey========");