misc: fix modal size
This commit is contained in:
1 parent
e535eaa062
commit
f835e31fb9
3 files changed
+10
-3
No files matched your search
@@ -184,7 +184,12 @@
|
||||
bind:value={data.url}
|
||||
placeholder="https://notascam.com"
|
||||
/>
|
||||
<TextArea label="Body" bind:value={data.body} placeholder={placeholder2} />
|
||||
<TextArea
|
||||
rows={6}
|
||||
label="Body"
|
||||
bind:value={data.body}
|
||||
placeholder={placeholder2}
|
||||
/>
|
||||
<div>
|
||||
<span class="block my-1 font-bold text-sm">Image</span>
|
||||
<FileInput
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { md } from '$lib/components/markdown/markdown'
|
||||
import { page } from '$app/stores'
|
||||
|
||||
export let source: string = ''
|
||||
|
||||
md.linkify.add('!', {
|
||||
@@ -22,7 +24,7 @@
|
||||
return 0
|
||||
},
|
||||
normalize: function (match) {
|
||||
match.url = `${location.origin}/c/${match.url.slice(1)}`
|
||||
match.url = `${$page.url.origin}/c/${match.url.slice(1)}`
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -25,7 +25,7 @@ flex flex-col items-center justify-center bg-black/50 backdrop-blur-sm"
|
||||
transition:scale={{ start: 0.9, easing: expoOut }}
|
||||
class={$$props.class}
|
||||
>
|
||||
<Card class="w-full dark:!bg-zinc-950 rounded-xl max-w-xl">
|
||||
<Card class="w-[calc(100vw-1rem)] dark:!bg-zinc-950 rounded-xl max-w-xl">
|
||||
<div class="p-6 flex flex-col gap-4">
|
||||
{#if $$slots.title}
|
||||
<h1 class="font-bold text-2xl">
|
||||
|
||||
Reference in new issue
Block a user