@donglegeyu/company-ui 1.2.9 → 1.2.10

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.
@@ -111,20 +111,13 @@ function DetailPageTemplate({
111
111
  ] }),
112
112
  tags && tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dpt-info-tags", children: tags.map((tag, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_basic_components.CompanyTag, { className: tagVariantClass[tag.variant ?? "default"], children: tag.text }, index)) })
113
113
  ] }),
114
- infoFields && infoFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
115
- "div",
116
- {
117
- className: "dpt-info-fields",
118
- style: { gridTemplateColumns: `repeat(${infoColumns}, minmax(0, 1fr))` },
119
- children: infoFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dpt-field-item", children: [
120
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dpt-field-label", children: [
121
- field.label,
122
- ":"
123
- ] }),
124
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dpt-field-value", children: field.value ?? "--" })
125
- ] }, index))
126
- }
127
- ),
114
+ infoFields && infoFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dpt-info-fields", children: infoFields.map((field, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dpt-field-item", children: [
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dpt-field-label", children: [
116
+ field.label,
117
+ ""
118
+ ] }),
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dpt-field-value", children: field.value ?? "--" })
120
+ ] }, index)) }),
128
121
  infoArea
129
122
  ] }),
130
123
  showDivider && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dpt-divider" }),
@@ -64,8 +64,10 @@
64
64
  }
65
65
 
66
66
  .dpt-info-fields {
67
- display: grid;
68
- gap: 8px 24px;
67
+ display: flex;
68
+ flex-direction: row;
69
+ flex-wrap: wrap;
70
+ gap: 8px calc(16px + 24px);
69
71
 
70
72
  .dpt-field-item {
71
73
  display: flex;
@@ -103,9 +103,6 @@ export default function DetailPageTemplate(_ref) {
103
103
  })]
104
104
  }), infoFields && infoFields.length > 0 && /*#__PURE__*/_jsx("div", {
105
105
  className: "dpt-info-fields",
106
- style: {
107
- gridTemplateColumns: "repeat(".concat(infoColumns, ", minmax(0, 1fr))")
108
- },
109
106
  children: infoFields.map(function (field, index) {
110
107
  var _field$value;
111
108
  return /*#__PURE__*/_jsxs("div", {
@@ -64,8 +64,10 @@
64
64
  }
65
65
 
66
66
  .dpt-info-fields {
67
- display: grid;
68
- gap: 8px 24px;
67
+ display: flex;
68
+ flex-direction: row;
69
+ flex-wrap: wrap;
70
+ gap: 8px calc(16px + 24px);
69
71
 
70
72
  .dpt-field-item {
71
73
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donglegeyu/company-ui",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",