Skip to content

Commit cd30d3e

Browse files
authored
Merge branch 'main' into build/migrate-async-config-typing
2 parents c792ebc + 43cb10a commit cd30d3e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎docs/.vitepress/theme/components/CopyPrompt.vue‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ onBeforeUnmount(() => {
9898
<Teleport to="body">
9999
<dialog
100100
ref="dialogEl"
101-
class="m-auto w-[min(48rem,calc(100vw-2rem))] max-h-[min(80vh,36rem)] rounded-xl border border-stroke bg-white p-0 text-primary shadow-xl backdrop:bg-black/40 dark:border-nickel dark:bg-slate dark:text-white"
101+
class="m-auto w-[min(48rem,calc(100vw-2rem))] max-h-[min(80vh,36rem)] flex-col overflow-hidden rounded-xl border border-stroke bg-white p-0 text-primary shadow-xl open:flex backdrop:bg-black/40 dark:border-nickel dark:bg-slate dark:text-white"
102102
:aria-labelledby="titleId"
103103
@click="onDialogClick"
104104
>
105-
<form class="flex max-h-[min(80vh,36rem)] flex-col" method="dialog">
106-
<header class="flex items-center justify-between gap-4 px-5 pt-4 pb-3">
105+
<form class="flex min-h-0 flex-col" method="dialog">
106+
<header class="flex shrink-0 items-center justify-between gap-4 px-5 pt-4 pb-3">
107107
<h2 :id="titleId" class="m-0 text-base font-medium">Setup prompt</h2>
108108
<button
109109
type="submit"
@@ -116,7 +116,9 @@ onBeforeUnmount(() => {
116116
<pre
117117
class="m-0 overflow-auto px-5 pb-4 font-mono text-sm leading-relaxed break-words whitespace-pre-wrap"
118118
>{{ promptText }}</pre>
119-
<footer class="flex justify-end border-t border-stroke px-5 py-3 dark:border-nickel">
119+
<footer
120+
class="flex shrink-0 justify-end border-t border-stroke px-5 py-3 dark:border-nickel"
121+
>
120122
<button type="button" class="button" @mousedown="blurPointerTarget" @click="copyPrompt">
121123
<Icon :icon="copyIcon" class="size-4" aria-hidden="true" />
122124
<span>{{ copyLabel }}</span>

0 commit comments

Comments
 (0)