Skip to content

Commit 5165490

Browse files
committed
tweaks
1 parent 285050f commit 5165490

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/routes/assistant/[assistantId]/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
use:clickOutside={() => {
4646
goto(previousPage);
4747
}}
48-
class="z-10 flex flex-col content-center items-center gap-x-10 gap-y-2 overflow-hidden rounded-2xl bg-white p-4 shadow-2xl outline-none md:w-96 md:grid-cols-3 md:grid-rows-[auto,1fr] md:p-8"
48+
class="z-10 flex flex-col content-center items-center gap-x-10 gap-y-2 overflow-hidden rounded-2xl bg-white p-4 text-center shadow-2xl outline-none max-sm:px-6 md:w-96 md:grid-cols-3 md:grid-rows-[auto,1fr] md:p-8"
4949
>
5050
{#if data.assistant.avatar}
5151
<img
@@ -103,9 +103,9 @@
103103
>
104104
<button
105105
type="submit"
106-
class=" w-full rounded-full bg-black px-4 py-2 font-semibold text-white"
106+
class=" w-full rounded-full bg-black px-4 py-3 font-semibold text-white"
107107
>
108-
Add assistant and start chatting
108+
Start chatting
109109
</button>
110110
</form>
111111
</dialog>

src/routes/assistant/[assistantId]/thumbnail.png/+server.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export const GET: RequestHandler = (async ({ url, params, fetch }) => {
3434
);
3535

3636
const svg = await satori(reactLike, {
37-
width: 700,
38-
height: 370,
37+
width: 1200,
38+
height: 648,
3939
fonts: [
4040
{
4141
name: "Inter",
@@ -47,16 +47,6 @@ export const GET: RequestHandler = (async ({ url, params, fetch }) => {
4747
data: await fetch(base + "/fonts/Inter-Bold.ttf").then((r) => r.arrayBuffer()),
4848
weight: 700,
4949
},
50-
{
51-
name: "Inter",
52-
data: await fetch(base + "/fonts/Inter-ExtraBold.ttf").then((r) => r.arrayBuffer()),
53-
weight: 800,
54-
},
55-
{
56-
name: "Inter",
57-
data: await fetch(base + "/fonts/Inter-Black.ttf").then((r) => r.arrayBuffer()),
58-
weight: 900,
59-
},
6050
],
6151
});
6252

0 commit comments

Comments
 (0)