botholomew 0.7.12 → 0.7.13
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
|
@@ -272,13 +272,17 @@ export const ContextPanel = memo(function ContextPanel({
|
|
|
272
272
|
{visibleItems.map((item, vi) => {
|
|
273
273
|
const i = vi + scrollOffset;
|
|
274
274
|
const ci = item as ContextItem;
|
|
275
|
+
const slashIdx = ci.context_path.lastIndexOf("/");
|
|
276
|
+
const dir =
|
|
277
|
+
slashIdx >= 0 ? ci.context_path.slice(0, slashIdx + 1) : "";
|
|
275
278
|
return (
|
|
276
279
|
<Box key={ci.id}>
|
|
277
280
|
<Text
|
|
278
281
|
backgroundColor={i === cursor ? "#333" : undefined}
|
|
279
282
|
color={i === cursor ? "cyan" : undefined}
|
|
280
283
|
>
|
|
281
|
-
{" "}📄 {
|
|
284
|
+
{" "}📄 <Text dimColor>{dir}</Text>
|
|
285
|
+
{ci.title}
|
|
282
286
|
<Text dimColor> ({ci.mime_type})</Text>
|
|
283
287
|
</Text>
|
|
284
288
|
</Box>
|