Skip to content

Commit c0b8068

Browse files
authored
Merge pull request #179 from OpenMOSS/dev
feat(ui/feature): add hints
2 parents df9db65 + 6a02479 commit c0b8068

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ui-ssr/src/components/feature/feature-card.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ export const FeatureCardCompactForEmbed = memo(
162162
plain?: boolean
163163
defaultVisibleRange?: number
164164
}) => {
165+
const isLorsa = feature.samples.some(
166+
(s) => s.zPatternIndices && s.zPatternIndices.length > 0,
167+
)
168+
165169
return (
166170
<div
167171
className={cn(
@@ -183,6 +187,11 @@ export const FeatureCardCompactForEmbed = memo(
183187
No interpretation available
184188
</p>
185189
)}
190+
{isLorsa && (
191+
<p className="text-xs text-slate-400 mt-1">
192+
Hover on top activations to see z-pattern
193+
</p>
194+
)}
186195
</div>
187196
<div className="flex items-center gap-2 shrink-0">
188197
<span className="text-xs text-slate-500 font-medium tracking-wide">

0 commit comments

Comments
 (0)