@prenta/admin 2.14.4 → 2.14.6

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.
@@ -488,21 +488,21 @@
488
488
  color: var(--acc);
489
489
  }
490
490
 
491
- /* All forms and Export share one 34px control (the admin button height). */
491
+ /* Entries handoff: compact desktop controls, larger touch targets. */
492
492
  .prenta-admin.prenta-admin :is(button, select).inbox-header-control {
493
493
  box-sizing: border-box;
494
494
  display: inline-flex;
495
495
  align-items: center;
496
496
  gap: 6px;
497
- height: 34px;
498
- min-height: 34px;
497
+ height: 28px;
498
+ min-height: 28px;
499
499
  margin: 0;
500
500
  padding: 0 10px;
501
501
  border: 1px solid var(--bdr);
502
502
  border-radius: 8px;
503
503
  background: var(--card);
504
504
  color: var(--txt);
505
- font-size: 13px;
505
+ font-size: 12.5px;
506
506
  font-weight: 500;
507
507
  line-height: 1;
508
508
  }
@@ -515,6 +515,50 @@
515
515
  opacity: 0.6;
516
516
  }
517
517
 
518
+ .prenta-admin.prenta-admin select.inbox-header-control {
519
+ padding-inline: 6px;
520
+ }
521
+ .prenta-admin .inbox-row-checkbox {
522
+ position: relative;
523
+ box-sizing: border-box;
524
+ display: flex;
525
+ align-items: center;
526
+ justify-content: center;
527
+ flex-shrink: 0;
528
+ width: 15px;
529
+ height: 15px;
530
+ min-width: 0;
531
+ min-height: 0;
532
+ margin: 0;
533
+ padding: 0;
534
+ border-width: 1.5px;
535
+ border-style: solid;
536
+ border-radius: 4px;
537
+ cursor: pointer;
538
+ }
539
+ .prenta-admin .inbox-row-checkbox::before {
540
+ content: '';
541
+ position: absolute;
542
+ width: 25px;
543
+ height: 25px;
544
+ left: 50%;
545
+ top: 50%;
546
+ transform: translate(-50%, -50%);
547
+ }
548
+ .prenta-admin .inbox-row-checkbox:hover {
549
+ border-color: var(--acc-m);
550
+ }
551
+ .prenta-admin .inbox-row-checkbox:focus-visible {
552
+ outline: 2px solid var(--acc);
553
+ outline-offset: 2px;
554
+ }
555
+ @media (max-width: 1024px) {
556
+ .prenta-admin.prenta-admin :is(button, select).inbox-header-control {
557
+ height: 40px;
558
+ min-height: 40px;
559
+ }
560
+ }
561
+
518
562
  .prenta-admin .prenta-section-label {
519
563
  font-size: var(--fs-label);
520
564
  font-weight: 600;
@@ -1905,13 +1905,13 @@ function EntryRow({
1905
1905
  event.stopPropagation()
1906
1906
  onCheck()
1907
1907
  }}
1908
- className={`flex size-6 items-center justify-center rounded-[4px] border-[1.5px] ${
1908
+ className={`inbox-row-checkbox ${
1909
1909
  checked
1910
1910
  ? 'border-acc bg-acc text-[var(--on-acc)]'
1911
1911
  : 'border-bdr bg-card text-transparent'
1912
1912
  }`}
1913
1913
  >
1914
- <Check size={11} aria-hidden />
1914
+ <Check size={10} aria-hidden />
1915
1915
  </button>
1916
1916
  {compact ? null : (
1917
1917
  <span
@@ -2087,7 +2087,7 @@ function EntryDetail({
2087
2087
  const [fields, setFields] = useState<FormField[]>([])
2088
2088
  const [otherCount, setOtherCount] = useState<number>(entry.otherEntryCount ?? 0)
2089
2089
  const [metaOpen, setMetaOpen] = useState(true)
2090
- const [showEmpty, setShowEmpty] = useState(false)
2090
+ const [showAllFields, setShowAllFields] = useState(false)
2091
2091
  const [noteText, setNoteText] = useState('')
2092
2092
  const notes = entry.notes ?? []
2093
2093
  const index = list.findIndex((item) => item.id === entry.id)
@@ -2107,7 +2107,7 @@ function EntryDetail({
2107
2107
  )
2108
2108
 
2109
2109
  useEffect(() => {
2110
- setShowEmpty(false)
2110
+ setShowAllFields(false)
2111
2111
  setNoteText('')
2112
2112
  setOtherCount(entry.otherEntryCount ?? 0)
2113
2113
  let cancelled = false
@@ -2163,14 +2163,44 @@ function EntryDetail({
2163
2163
  () => present.filter(({ key }) => key !== msgEntry?.key),
2164
2164
  [present, msgEntry],
2165
2165
  )
2166
- const filledRows = useMemo(
2167
- () => submissionRows.filter(({ key }) => Boolean(displayValue(entry.data[key]))),
2168
- [submissionRows, entry.data],
2169
- )
2170
- const emptyRows = useMemo(
2171
- () => submissionRows.filter(({ key }) => !displayValue(entry.data[key])),
2172
- [submissionRows, entry.data],
2166
+ // Collapse only values actually represented by the contact header. Some
2167
+ // legacy submissions store a first name as senderName without the surname.
2168
+ const headerFieldKeys = new Set(
2169
+ ['name', 'first_name', 'last_name', 'full_name'].filter((key) => {
2170
+ const value = displayValue(entry.data[key]).trim().toLocaleLowerCase()
2171
+ return value && ` ${name.toLocaleLowerCase()} `.includes(` ${value} `)
2172
+ }),
2173
2173
  )
2174
+ if (email && displayValue(entry.data.email) === email) headerFieldKeys.add('email')
2175
+ if (phone && displayValue(entry.data.phone) === phone) headerFieldKeys.add('phone')
2176
+ if (website) headerFieldKeys.add('website')
2177
+ const hiddenHeaderRows = submissionRows.filter(({ key }) => headerFieldKeys.has(key))
2178
+ const emptyRows = submissionRows.filter(({ key }) => !displayValue(entry.data[key]))
2179
+ const visibleRows = showAllFields
2180
+ ? submissionRows
2181
+ : submissionRows.filter(
2182
+ ({ key }) => !headerFieldKeys.has(key) && Boolean(displayValue(entry.data[key])),
2183
+ )
2184
+ const hiddenHeaderCount = hiddenHeaderRows.filter(({ key }) =>
2185
+ displayValue(entry.data[key]),
2186
+ ).length
2187
+ const hiddenFieldSummary = [
2188
+ hiddenHeaderCount ? `${hiddenHeaderCount} shown above` : '',
2189
+ emptyRows.length ? `${emptyRows.length} empty` : '',
2190
+ ]
2191
+ .filter(Boolean)
2192
+ .join(', ')
2193
+ const messageTitle = msgEntry
2194
+ ? (
2195
+ {
2196
+ description: 'Project description',
2197
+ message: 'Message',
2198
+ goal: 'Primary goal',
2199
+ services: 'Services',
2200
+ } as Record<string, string>
2201
+ )[msgEntry.key] || msgEntry.label
2202
+ : ''
2203
+
2174
2204
  const answeredCount = useMemo(
2175
2205
  () => present.filter(({ key }) => Boolean(displayValue(entry.data[key]))).length,
2176
2206
  [present, entry.data],
@@ -2492,10 +2522,10 @@ function EntryDetail({
2492
2522
  )}
2493
2523
  </div>
2494
2524
 
2495
- {/* Hybrid white top band: hero + message */}
2525
+ {/* Hybrid white top band: contact header */}
2496
2526
  <div className="border-bdr bg-card border-b">
2497
- <div className="mx-auto max-w-[860px] px-8 pt-7 pb-[30px] max-[900px]:px-4 max-[900px]:pt-5 max-[900px]:pb-6 @[1240px]:max-w-[1180px]">
2498
- <div className={`flex items-start gap-4 max-[640px]:flex-wrap ${msgEntry ? 'mb-6' : ''}`}>
2527
+ <div className="mx-auto max-w-[860px] px-8 pt-7 pb-6 max-[900px]:px-4 max-[900px]:pt-5 max-[900px]:pb-6 @[1240px]:max-w-[1180px]">
2528
+ <div className="flex items-start gap-4 max-[640px]:flex-wrap">
2499
2529
  <span
2500
2530
  className="flex size-[52px] shrink-0 items-center justify-center rounded-full text-[18px] font-bold"
2501
2531
  style={{ background: avatarColor(name), color: 'var(--on-avatar)' }}
@@ -2543,15 +2573,17 @@ function EntryDetail({
2543
2573
  {/* Source line */}
2544
2574
  <div className="text-sub mt-2 flex min-w-0 items-center gap-2 text-[12.5px]">
2545
2575
  <span
2546
- className="inline-flex shrink-0 items-center rounded-[5px] px-2 py-[3px] text-[11px] font-semibold"
2576
+ className="inline-flex shrink-0 items-center rounded-[5px] px-2 py-[3px] text-[11px] font-semibold whitespace-nowrap"
2547
2577
  style={{ color: attr.channelFg, background: attr.channelBg }}
2548
2578
  >
2549
2579
  {attr.channelLabel}
2550
2580
  </span>
2551
- <span className="min-w-0 truncate">
2552
- <b className="text-txt font-semibold">{attr.source}</b> / {attr.medium}
2553
- {attr.campaign ? ` · ${attr.campaign}` : ''}
2554
- </span>
2581
+ {attr.channelKey !== 'direct' ? (
2582
+ <span className="min-w-0 truncate">
2583
+ <b className="text-txt font-semibold">{attr.source}</b> / {attr.medium}
2584
+ {attr.campaign ? ` · ${attr.campaign}` : ''}
2585
+ </span>
2586
+ ) : null}
2555
2587
  </div>
2556
2588
 
2557
2589
  {/* Contact pills */}
@@ -2754,161 +2786,160 @@ function EntryDetail({
2754
2786
  </div>
2755
2787
  </div>
2756
2788
  ) : null}
2789
+ </div>
2790
+ </div>
2757
2791
 
2758
- {/* Message block on hybrid white band */}
2792
+ {/* Grey body area: cards. The left stack is one grid cell so a short
2793
+ Message card does not inherit the height of the attribution column. */}
2794
+ <div className="mx-auto max-w-[860px] px-8 pt-[22px] pb-12 max-[900px]:px-4 max-[900px]:pt-4 max-[900px]:pb-10 @[1240px]:grid @[1240px]:max-w-[1180px] @[1240px]:grid-cols-[minmax(0,1fr)_400px] @[1240px]:items-start @[1240px]:gap-x-5">
2795
+ <div className="min-w-0 @[1240px]:col-start-1 @[1240px]:row-start-1">
2759
2796
  {msgEntry ? (
2760
- <section className="group" aria-labelledby="d-msg-l">
2761
- <div className="text-faint mb-2 flex items-center gap-2 text-[12px] font-semibold">
2762
- <span id="d-msg-l">{msgEntry.label}</span>
2797
+ <article
2798
+ className="group border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border"
2799
+ aria-labelledby="d-msg-l"
2800
+ >
2801
+ <h3
2802
+ id="d-msg-l"
2803
+ className="border-bdr text-txt m-0 flex items-center gap-2 border-b px-5 py-3 text-[13px] font-semibold"
2804
+ >
2805
+ {messageTitle}
2763
2806
  <button
2764
2807
  type="button"
2765
- title={`Copy ${msgEntry.label}`}
2766
- aria-label={`Copy ${msgEntry.label}`}
2808
+ title={`Copy ${messageTitle}`}
2809
+ aria-label={`Copy ${messageTitle}`}
2767
2810
  onClick={() => copyValue(msgText)}
2768
- className="text-faint hover:bg-acc-l hover:text-acc ml-auto inline-flex size-6 items-center justify-center rounded-[6px] opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 focus-visible:opacity-100"
2811
+ className="text-faint hover:bg-acc-l hover:text-acc ml-auto inline-flex size-6 items-center justify-center rounded-[6px] opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 focus-visible:opacity-100 [@media(hover:none)]:opacity-100"
2769
2812
  >
2770
2813
  <Copy size={13} aria-hidden />
2771
2814
  </button>
2772
- </div>
2815
+ </h3>
2773
2816
  <div
2774
2817
  dir="auto"
2775
- className="text-txt max-w-[68ch] text-[15.5px] leading-[1.7] break-words whitespace-pre-wrap @[1240px]:max-w-[75ch]"
2818
+ className="text-txt px-5 pt-4 pb-5 text-[15px] leading-[1.7] [text-wrap:pretty] break-words whitespace-pre-wrap"
2776
2819
  >
2777
2820
  {formatFieldDisplay(msgEntry.key, msgText, fieldMap.get(msgEntry.key))}
2778
2821
  </div>
2779
- </section>
2780
- ) : null}
2781
- </div>
2782
- </div>
2783
-
2784
- {/* Grey body area: cards */}
2785
- <div className="mx-auto max-w-[860px] px-8 pt-[22px] pb-12 max-[900px]:px-4 max-[900px]:pt-4 max-[900px]:pb-10 @[1240px]:grid @[1240px]:max-w-[1180px] @[1240px]:grid-cols-[minmax(0,1fr)_400px] @[1240px]:items-start @[1240px]:gap-x-5">
2786
- {/* Submission card */}
2787
- <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border @[1240px]:col-start-1">
2788
- <h3 className="border-bdr text-faint m-0 flex items-center gap-2 border-b px-5 py-3 text-[11px] font-bold tracking-[0.6px] uppercase">
2789
- Submission
2790
- <span className="ml-auto text-[11.5px] font-semibold tracking-normal normal-case">
2791
- {answeredCount} of {present.length} answered
2792
- </span>
2793
- </h3>
2794
- <dl className="divide-bdr m-0 divide-y">
2795
- {filledRows.map(({ key, label }) => {
2796
- const raw = displayValue(entry.data[key])
2797
- const formatted = formatFieldDisplay(key, raw, fieldMap.get(key))
2798
- return (
2799
- <DetailRow key={key} label={label} copyText={formatted} onCopy={copyValue}>
2800
- {formatted}
2801
- </DetailRow>
2802
- )
2803
- })}
2804
- {showEmpty
2805
- ? emptyRows.map(({ key, label }) => (
2806
- <div
2807
- key={key}
2808
- className="grid grid-cols-[minmax(110px,32%)_minmax(0,1fr)] items-baseline gap-x-4 gap-y-1 px-5 py-[11px] max-[520px]:grid-cols-1"
2809
- >
2810
- <dt className="text-sub text-[12.5px] leading-[1.5] font-medium">{label}</dt>
2811
- <dd className="text-faint m-0 text-[14px] leading-[1.55]">Not answered</dd>
2812
- </div>
2813
- ))
2814
- : null}
2815
- </dl>
2816
- {emptyRows.length > 0 ? (
2817
- <button
2818
- type="button"
2819
- aria-expanded={showEmpty}
2820
- onClick={() => setShowEmpty((v) => !v)}
2821
- className="border-bdr text-acc hover:bg-acc-l block w-full cursor-pointer border-0 border-t bg-transparent px-5 py-2.5 text-left text-[12.5px] font-medium"
2822
- >
2823
- {showEmpty
2824
- ? 'Hide empty fields'
2825
- : `Show ${emptyRows.length} empty ${emptyRows.length === 1 ? 'field' : 'fields'}`}
2826
- </button>
2822
+ </article>
2827
2823
  ) : null}
2828
- </article>
2829
-
2830
- {/* Team notes card */}
2831
- {entry.spamStatus !== 'spam' && !entry.partial ? (
2832
- <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border @[1240px]:col-start-1">
2824
+ {/* Submission card */}
2825
+ <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border">
2833
2826
  <h3 className="border-bdr text-faint m-0 flex items-center gap-2 border-b px-5 py-3 text-[11px] font-bold tracking-[0.6px] uppercase">
2834
- Team notes
2827
+ Submission
2835
2828
  <span className="ml-auto text-[11.5px] font-semibold tracking-normal normal-case">
2836
- {notes.length} {notes.length === 1 ? 'note' : 'notes'}
2829
+ {answeredCount} of {present.length} answered
2837
2830
  </span>
2838
2831
  </h3>
2839
- <div className="flex flex-col gap-3.5 px-5 pt-3.5 pb-4">
2840
- {notes.map((n, idx) => {
2841
- const author =
2842
- team.find((t) => t.id === n.authorId)?.name ||
2843
- n.authorName ||
2844
- n.authorId ||
2845
- 'Team'
2832
+ <dl className="divide-bdr m-0 divide-y">
2833
+ {visibleRows.map(({ key, label }) => {
2834
+ const raw = displayValue(entry.data[key])
2835
+ const formatted = formatFieldDisplay(key, raw, fieldMap.get(key))
2846
2836
  return (
2847
- <div key={idx} className="flex gap-2.5">
2848
- <span
2849
- className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
2850
- style={{ background: avatarColor(author), color: 'var(--on-avatar)' }}
2851
- >
2852
- {initials(author)}
2853
- </span>
2854
- <div className="min-w-0 flex-1">
2855
- <div className="flex items-baseline gap-2 text-[12.5px]">
2856
- <b className="text-txt font-semibold">{author}</b>
2857
- <span className="text-faint text-[11.5px]">{fullEntryTime(n.at)}</span>
2858
- </div>
2859
- <div className="text-txt mt-0.5 text-[13px] leading-[1.5] whitespace-pre-wrap">
2860
- {n.text}
2861
- </div>
2862
- </div>
2863
- </div>
2837
+ <DetailRow
2838
+ key={key}
2839
+ label={label}
2840
+ copyText={formatted || undefined}
2841
+ onCopy={copyValue}
2842
+ >
2843
+ {formatted || <span className="text-faint">Not answered</span>}
2844
+ </DetailRow>
2864
2845
  )
2865
2846
  })}
2866
- {notes.length === 0 ? (
2867
- <div className="text-faint text-[12.5px]">
2868
- No notes yet. Notes are only visible to your team.
2869
- </div>
2870
- ) : null}
2871
- <div className="border-bdr flex gap-2.5 border-t pt-3">
2872
- <span
2873
- className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
2874
- style={{ background: avatarColor(currentUserName), color: 'var(--on-avatar)' }}
2875
- >
2876
- {initials(currentUserName)}
2847
+ </dl>
2848
+ {hiddenFieldSummary ? (
2849
+ <button
2850
+ type="button"
2851
+ aria-expanded={showAllFields}
2852
+ onClick={() => setShowAllFields((v) => !v)}
2853
+ className="border-bdr text-acc hover:bg-acc-l block w-full cursor-pointer border-0 border-t bg-transparent px-5 py-2.5 text-left text-[12.5px] font-medium"
2854
+ >
2855
+ {showAllFields ? 'Show fewer fields' : `Show all fields (${hiddenFieldSummary})`}
2856
+ </button>
2857
+ ) : null}
2858
+ </article>
2859
+
2860
+ {/* Team notes card */}
2861
+ {entry.spamStatus !== 'spam' && !entry.partial ? (
2862
+ <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border">
2863
+ <h3 className="border-bdr text-faint m-0 flex items-center gap-2 border-b px-5 py-3 text-[11px] font-bold tracking-[0.6px] uppercase">
2864
+ Team notes
2865
+ <span className="ml-auto text-[11.5px] font-semibold tracking-normal normal-case">
2866
+ {notes.length} {notes.length === 1 ? 'note' : 'notes'}
2877
2867
  </span>
2878
- <div className="min-w-0 flex-1">
2879
- <textarea
2880
- rows={2}
2881
- value={noteText}
2882
- placeholder="Add a note for your team…"
2883
- aria-label="Add a note"
2884
- onChange={(e) => setNoteText(e.target.value)}
2885
- onKeyDown={(e) => {
2886
- if (e.key === 'Enter' && (e.metaKey || e.ctrlKey) && noteText.trim()) {
2887
- e.preventDefault()
2888
- addNote()
2889
- }
2890
- }}
2891
- className="border-bdr bg-card text-txt focus-visible:outline-acc min-h-[58px] w-full resize-y rounded-[9px] border px-2.5 py-2 text-[13px] leading-[1.45] focus-visible:outline focus-visible:outline-offset-2"
2892
- />
2893
- <div className="text-faint mt-1.5 flex items-center gap-2.5 text-[11.5px]">
2894
- <span className="flex-1">⌘ Enter to save · only visible to your team</span>
2895
- <button
2896
- type="button"
2897
- disabled={!noteText.trim()}
2898
- onClick={addNote}
2899
- className="bg-acc inline-flex items-center gap-1.5 rounded-[8px] px-[15px] py-2 text-[13px] font-medium text-[var(--on-acc)] disabled:cursor-not-allowed disabled:opacity-45"
2900
- >
2901
- Add note
2902
- </button>
2868
+ </h3>
2869
+ <div className="flex flex-col gap-3.5 px-5 pt-3.5 pb-4">
2870
+ {notes.map((n, idx) => {
2871
+ const author =
2872
+ team.find((t) => t.id === n.authorId)?.name ||
2873
+ n.authorName ||
2874
+ n.authorId ||
2875
+ 'Team'
2876
+ return (
2877
+ <div key={idx} className="flex gap-2.5">
2878
+ <span
2879
+ className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
2880
+ style={{ background: avatarColor(author), color: 'var(--on-avatar)' }}
2881
+ >
2882
+ {initials(author)}
2883
+ </span>
2884
+ <div className="min-w-0 flex-1">
2885
+ <div className="flex items-baseline gap-2 text-[12.5px]">
2886
+ <b className="text-txt font-semibold">{author}</b>
2887
+ <span className="text-faint text-[11.5px]">{fullEntryTime(n.at)}</span>
2888
+ </div>
2889
+ <div className="text-txt mt-0.5 text-[13px] leading-[1.5] whitespace-pre-wrap">
2890
+ {n.text}
2891
+ </div>
2892
+ </div>
2893
+ </div>
2894
+ )
2895
+ })}
2896
+ {notes.length === 0 ? (
2897
+ <div className="text-faint text-[12.5px]">
2898
+ No notes yet. Notes are only visible to your team.
2899
+ </div>
2900
+ ) : null}
2901
+ <div className="border-bdr flex gap-2.5 border-t pt-3">
2902
+ <span
2903
+ className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
2904
+ style={{ background: avatarColor(currentUserName), color: 'var(--on-avatar)' }}
2905
+ >
2906
+ {initials(currentUserName)}
2907
+ </span>
2908
+ <div className="min-w-0 flex-1">
2909
+ <textarea
2910
+ rows={2}
2911
+ value={noteText}
2912
+ placeholder="Add a note for your team…"
2913
+ aria-label="Add a note"
2914
+ onChange={(e) => setNoteText(e.target.value)}
2915
+ onKeyDown={(e) => {
2916
+ if (e.key === 'Enter' && (e.metaKey || e.ctrlKey) && noteText.trim()) {
2917
+ e.preventDefault()
2918
+ addNote()
2919
+ }
2920
+ }}
2921
+ className="border-bdr bg-card text-txt focus-visible:outline-acc min-h-[58px] w-full resize-y rounded-[9px] border px-2.5 py-2 text-[13px] leading-[1.45] focus-visible:outline focus-visible:outline-offset-2"
2922
+ />
2923
+ <div className="text-faint mt-1.5 flex items-center gap-2.5 text-[11.5px]">
2924
+ <span className="flex-1">⌘ Enter to save · only visible to your team</span>
2925
+ <button
2926
+ type="button"
2927
+ disabled={!noteText.trim()}
2928
+ onClick={addNote}
2929
+ className="bg-acc inline-flex items-center gap-1.5 rounded-[8px] px-[15px] py-2 text-[13px] font-medium text-[var(--on-acc)] disabled:cursor-not-allowed disabled:opacity-45"
2930
+ >
2931
+ Add note
2932
+ </button>
2933
+ </div>
2903
2934
  </div>
2904
2935
  </div>
2905
2936
  </div>
2906
- </div>
2907
- </article>
2908
- ) : null}
2937
+ </article>
2938
+ ) : null}
2939
+ </div>
2909
2940
 
2910
2941
  {/* Attribution & technical card */}
2911
- <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border @[1240px]:sticky @[1240px]:top-[68px] @[1240px]:col-start-2 @[1240px]:row-span-2 @[1240px]:row-start-1">
2942
+ <article className="border-bdr bg-card shadow-shd mb-3.5 overflow-hidden rounded-[10px] border @[1240px]:sticky @[1240px]:top-[68px] @[1240px]:col-start-2 @[1240px]:row-start-1">
2912
2943
  <h3 className="m-0">
2913
2944
  <button
2914
2945
  type="button"
@@ -2982,9 +3013,10 @@ function EntryDetail({
2982
3013
  href={attr.landingPage}
2983
3014
  target="_blank"
2984
3015
  rel="noopener noreferrer"
2985
- className="text-acc hover:underline"
3016
+ title={attr.landingPage}
3017
+ className="text-acc block truncate hover:underline"
2986
3018
  >
2987
- {attr.landingPage}
3019
+ {attr.landingPage.replace(/^https?:\/\/(?:www\.)?/, '')}
2988
3020
  </a>
2989
3021
  ) : (
2990
3022
  '—'
@@ -3052,10 +3084,10 @@ function DetailRow({
3052
3084
  }) {
3053
3085
  return (
3054
3086
  <div
3055
- className={`group grid items-baseline gap-x-4 gap-y-1 px-5 hover:bg-[color-mix(in_srgb,var(--bg)_60%,transparent)] max-[520px]:grid-cols-1 ${
3087
+ className={`group grid items-baseline gap-x-4 gap-y-1 px-5 hover:bg-[color-mix(in_srgb,var(--bg)_60%,transparent)] @max-[520px]:grid-cols-1 ${
3056
3088
  compact
3057
3089
  ? 'grid-cols-[minmax(110px,32%)_minmax(0,1fr)] py-[9px] @[1240px]:grid-cols-[118px_minmax(0,1fr)]'
3058
- : 'grid-cols-[minmax(110px,32%)_minmax(0,1fr)] py-[11px]'
3090
+ : 'grid-cols-[minmax(110px,170px)_minmax(0,1fr)] py-2'
3059
3091
  }`}
3060
3092
  >
3061
3093
  <dt className="text-sub text-[12.5px] leading-[1.5] font-medium">{label}</dt>