@industry-theme/file-city-panel 0.5.65 → 0.5.66

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TrailMarkdownOverlay.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAQD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4OpE,CAAC"}
1
+ {"version":3,"file":"TrailMarkdownOverlay.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAQD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAoPpE,CAAC"}
@@ -258096,31 +258096,43 @@ const TrailMarkdownOverlay = ({
258096
258096
  ]
258097
258097
  }
258098
258098
  ) : null,
258099
- /* @__PURE__ */ jsx(
258099
+ /* @__PURE__ */ jsxs(
258100
258100
  "div",
258101
258101
  {
258102
258102
  style: {
258103
258103
  flex: 1,
258104
258104
  minHeight: 0,
258105
- maxHeight: files && files.length > 0 ? "30%" : void 0,
258106
- position: "relative"
258105
+ overflowY: "auto",
258106
+ display: "flex",
258107
+ flexDirection: "column"
258107
258108
  },
258108
- children: /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ jsx(
258109
- IndustryMarkdownSlide,
258110
- {
258111
- content: body,
258112
- slideIdPrefix,
258113
- slideIndex: 0,
258114
- isVisible: true,
258115
- theme: theme2,
258116
- transparentBackground: true,
258117
- enableKeyboardScrolling: false
258118
- }
258119
- ) })
258109
+ children: [
258110
+ /* @__PURE__ */ jsx(
258111
+ "div",
258112
+ {
258113
+ style: {
258114
+ position: "relative",
258115
+ flex: "0 0 100%"
258116
+ },
258117
+ children: /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ jsx(
258118
+ IndustryMarkdownSlide,
258119
+ {
258120
+ content: body,
258121
+ slideIdPrefix,
258122
+ slideIndex: 0,
258123
+ isVisible: true,
258124
+ theme: theme2,
258125
+ transparentBackground: true,
258126
+ enableKeyboardScrolling: false
258127
+ }
258128
+ ) })
258129
+ }
258130
+ ),
258131
+ nav ? /* @__PURE__ */ jsx(TrailMarkdownOverlayFooter, { nav }) : null,
258132
+ files && files.length > 0 ? /* @__PURE__ */ jsx(TrailFilesList, { files }) : null
258133
+ ]
258120
258134
  }
258121
258135
  ),
258122
- nav ? /* @__PURE__ */ jsx(TrailMarkdownOverlayFooter, { nav }) : null,
258123
- files && files.length > 0 ? /* @__PURE__ */ jsx(TrailFilesList, { files }) : null,
258124
258136
  /* @__PURE__ */ jsx(
258125
258137
  "div",
258126
258138
  {
@@ -258163,14 +258175,14 @@ const TrailFilesList = ({ files }) => {
258163
258175
  {
258164
258176
  style: {
258165
258177
  borderTop: `1px solid ${theme2.colors.border}`,
258166
- // Markdown body is capped at 50% above; files take the rest
258167
- // of the remaining column. Grows past 50% if the summary is
258168
- // shorter than its cap (the markdown body shrinks below 50%
258169
- // to accommodate, since `max-height` doesn't force it).
258170
- flex: 1,
258178
+ // Lives inside the markdown body's scroll container, below
258179
+ // the slide and Start/nav footer. Sized to its content with
258180
+ // a 20% floor (of the scroll container's visible height) so
258181
+ // it always feels like a substantial section once revealed.
258182
+ flex: "0 0 auto",
258183
+ minHeight: "20%",
258171
258184
  display: "flex",
258172
- flexDirection: "column",
258173
- minHeight: 0
258185
+ flexDirection: "column"
258174
258186
  },
258175
258187
  children: [
258176
258188
  /* @__PURE__ */ jsx(
@@ -258188,7 +258200,7 @@ const TrailFilesList = ({ files }) => {
258188
258200
  children: "Files in this trail"
258189
258201
  }
258190
258202
  ),
258191
- /* @__PURE__ */ jsx("div", { style: { overflowY: "auto", minHeight: 0, padding: "0 6px 8px" }, children: files.map((file) => {
258203
+ /* @__PURE__ */ jsx("div", { style: { padding: "0 6px 8px" }, children: files.map((file) => {
258192
258204
  const fileName = file.sourcePath.split("/").pop() ?? file.sourcePath;
258193
258205
  const dir = file.sourcePath.slice(
258194
258206
  0,