jeawin-astro 3.0.49 → 3.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ const submitbuttontext = render_lang(all_langs, "send message");
|
|
|
60
60
|
/>
|
|
61
61
|
<div class="mt-8 max-w-md mx-auto">
|
|
62
62
|
{forminfo.form_before_content ? (
|
|
63
|
-
<div class="my-2"><Fragment set:html={forminfo.form_before_content} /></div>
|
|
63
|
+
<div class="my-2 prose max-w-none break-words"><Fragment set:html={forminfo.form_before_content} /></div>
|
|
64
64
|
) : null}
|
|
65
65
|
<div class="grid grid-cols-1 gap-4">
|
|
66
66
|
{forminfo.forms_fields.map((field: any) => (
|
|
@@ -102,7 +102,7 @@ const submitbuttontext = render_lang(all_langs, "send message");
|
|
|
102
102
|
</div>
|
|
103
103
|
</div>
|
|
104
104
|
{forminfo.form_after_content ? (
|
|
105
|
-
<div class="my-2"><Fragment set:html={forminfo.form_after_content} /></div>
|
|
105
|
+
<div class="my-2 prose max-w-none break-words"><Fragment set:html={forminfo.form_after_content} /></div>
|
|
106
106
|
) : null}
|
|
107
107
|
</div>
|
|
108
108
|
</form>
|
|
@@ -19,6 +19,6 @@ const { field } = Astro.props;
|
|
|
19
19
|
name={field.field_name}
|
|
20
20
|
required="required"
|
|
21
21
|
class="mt-1 block w-full"
|
|
22
|
-
autocomplete="off"></textarea>
|
|
22
|
+
autocomplete="off" placeholder={field.placeholder ? field.placeholder : field.field_label}></textarea>
|
|
23
23
|
{render_value(field, "field_help") ? <p>{field.field_help}</p> : null}
|
|
24
24
|
</label>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { Icon } from "astro-icon/components";
|
|
3
|
-
import { render_lang, render_value } from "../scripts/util.js";
|
|
3
|
+
import { render_lang, render_value, render_url } from "../scripts/util.js";
|
|
4
4
|
interface Props {
|
|
5
5
|
show_search_box?: boolean;
|
|
6
6
|
search_icon_style?: string;
|
|
7
7
|
}
|
|
8
|
-
const { all_langs } = Astro.locals;
|
|
8
|
+
const { all_langs, base } = Astro.locals;
|
|
9
9
|
const {show_search_box = false, search_icon_style} = Astro.props;
|
|
10
10
|
const searchInputLang = render_lang(all_langs, "Search by site");
|
|
11
11
|
const searchLang = render_lang(all_langs, "Search");
|
|
@@ -39,7 +39,7 @@ const searchLang = render_lang(all_langs, "Search");
|
|
|
39
39
|
:class={`{'!block fixed top-0 left-0 right-0 bg-white p-4 z-[2147483646]':showSearchForm}`}>
|
|
40
40
|
<form
|
|
41
41
|
method="get"
|
|
42
|
-
action="
|
|
42
|
+
action={render_url("search", base)}
|
|
43
43
|
data-astro-reload
|
|
44
44
|
>
|
|
45
45
|
<div class="max-w-screen-xl mx-auto flex items-center gap-4 w-full">
|