@gmickel/gno 0.31.1 → 0.31.2

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": "@gmickel/gno",
3
- "version": "0.31.1",
3
+ "version": "0.31.2",
4
4
  "description": "Local semantic search for your documents. Index Markdown, PDF, and Office files with hybrid BM25 + vector search.",
5
5
  "keywords": [
6
6
  "embeddings",
@@ -167,7 +167,9 @@ function BacklinkItem({
167
167
  <Tooltip>
168
168
  <TooltipTrigger asChild>
169
169
  <div className="min-w-0 flex-1">
170
- <span className="block truncate">{displayName}</span>
170
+ <span className="block break-words font-medium leading-tight whitespace-normal">
171
+ {displayName}
172
+ </span>
171
173
  {/* Line reference as subtitle */}
172
174
  <span className="block truncate text-[10px] opacity-60">
173
175
  L{backlink.startLine}:{backlink.startCol}
@@ -170,7 +170,9 @@ function LinkItem({
170
170
  <Tooltip>
171
171
  <TooltipTrigger asChild>
172
172
  <div className="min-w-0 flex-1">
173
- <span className="block truncate">{displayText}</span>
173
+ <span className="block break-words font-medium leading-tight whitespace-normal">
174
+ {displayText}
175
+ </span>
174
176
  {link.targetAnchor && (
175
177
  <span className="block truncate text-[10px] opacity-60">
176
178
  #{link.targetAnchor}
@@ -260,7 +260,7 @@ function RelatedNoteItem({
260
260
  {/* Title with tooltip for long names */}
261
261
  <Tooltip>
262
262
  <TooltipTrigger asChild>
263
- <h4 className="truncate font-mono text-[13px] text-foreground/90 group-hover:text-foreground">
263
+ <h4 className="line-clamp-3 break-words font-mono text-[13px] leading-tight text-foreground/90 group-hover:text-foreground">
264
264
  {doc.title || "Untitled"}
265
265
  </h4>
266
266
  </TooltipTrigger>
@@ -443,12 +443,12 @@ export default function Browse({ navigate }: PageProps) {
443
443
  {/* Document Table */}
444
444
  {docs.length > 0 && (
445
445
  <div className="animate-fade-in opacity-0">
446
- <Table>
446
+ <Table className="table-fixed">
447
447
  <TableHeader>
448
448
  <TableRow>
449
- <TableHead className="w-[50%]">Document</TableHead>
450
- <TableHead>Collection</TableHead>
451
- <TableHead className="text-right">Type</TableHead>
449
+ <TableHead className="w-[68%]">Document</TableHead>
450
+ <TableHead className="w-[220px]">Collection</TableHead>
451
+ <TableHead className="w-[72px] text-right">Type</TableHead>
452
452
  </TableRow>
453
453
  </TableHeader>
454
454
  <TableBody>
@@ -460,14 +460,14 @@ export default function Browse({ navigate }: PageProps) {
460
460
  navigate(`/doc?uri=${encodeURIComponent(doc.uri)}`)
461
461
  }
462
462
  >
463
- <TableCell>
463
+ <TableCell className="align-top whitespace-normal">
464
464
  <div className="flex items-center gap-2">
465
465
  <FileText className="size-4 shrink-0 text-muted-foreground" />
466
466
  <div className="min-w-0">
467
- <div className="truncate font-medium transition-colors group-hover:text-primary">
467
+ <div className="break-words font-medium leading-tight transition-colors group-hover:text-primary">
468
468
  {doc.title || doc.relPath}
469
469
  </div>
470
- <div className="truncate font-mono text-muted-foreground text-xs">
470
+ <div className="break-all font-mono text-muted-foreground text-xs leading-relaxed">
471
471
  {doc.relPath}
472
472
  </div>
473
473
  </div>
@@ -499,9 +499,9 @@ export default function Browse({ navigate }: PageProps) {
499
499
  <ChevronRight className="ml-auto size-4 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100" />
500
500
  </div>
501
501
  </TableCell>
502
- <TableCell>
502
+ <TableCell className="align-top whitespace-normal">
503
503
  <Badge
504
- className="cursor-pointer font-mono text-xs transition-colors hover:border-primary hover:text-primary"
504
+ className="inline-flex min-h-[2.5rem] max-w-[180px] cursor-pointer items-center px-3 py-1 text-center whitespace-normal break-words font-mono text-xs leading-tight transition-colors hover:border-primary hover:text-primary"
505
505
  onClick={(event) => {
506
506
  event.stopPropagation();
507
507
  navigateToCollection(doc.collection);
@@ -511,7 +511,7 @@ export default function Browse({ navigate }: PageProps) {
511
511
  {doc.collection}
512
512
  </Badge>
513
513
  </TableCell>
514
- <TableCell className="text-right">
514
+ <TableCell className="align-top text-right">
515
515
  <Badge
516
516
  className="font-mono text-xs"
517
517
  variant={getExtBadgeVariant(doc.sourceExt)}