jeawin-astro 3.0.49 → 3.0.51

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.49",
3
+ "version": "3.0.51",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -35,10 +35,10 @@ if (render_value(node, "content")) {
35
35
  ---
36
36
 
37
37
  <div
38
- class="group p-2 md:py-8 md:px-4 bg-white rounded-lg shadow-lg outline-hidden ring-zinc-500 transition-transform duration-300 hover:-translate-y-[5px] focus-visible:ring-3 focus-visible:ring-blue-500 flex flex-col justify-between h-full"
38
+ class="group p-2 md:py-8 md:px-4 bg-white overflow-hidden rounded-lg shadow-lg outline-hidden ring-zinc-500 transition-transform duration-300 hover:-translate-y-[5px] focus-visible:ring-3 focus-visible:ring-blue-500 flex flex-col h-full gap-4"
39
39
  >
40
40
  <div
41
- class="relative overflow-hidden rounded-xs h-full flex items-center justify-center"
41
+ class="relative overflow-hidden rounded-xs"
42
42
  >
43
43
  {
44
44
  node.channel_id == 11 ? (
@@ -66,7 +66,7 @@ if (render_value(node, "content")) {
66
66
  )
67
67
  }
68
68
  </div>
69
- <div class="mt-7">
69
+ <div>
70
70
  <TitleTag class:list={["text-center", title_class]}>
71
71
  <a href={render_url(node.node_url, base, null, url_suffix)} title={node.node_title}
72
72
  >{node.node_title}</a
@@ -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="/search.html"
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">