feat(lint): ban native title tooltips and migrate to styled Tooltip (#7209)
This commit is contained in:
1 parent
bab4b6f02b
commit
fee10def1a
27 files changed
+730
-355
No files matched your search
@@ -1006,9 +1006,12 @@ export function PullRequestCodeTab({
|
||||
>
|
||||
{/* Headlines run long, and the abbreviated oid after one is what a reader
|
||||
matches against the commit list on the host. */}
|
||||
<span className="min-w-0 truncate" title={entry.messageHeadline}>
|
||||
{entry.messageHeadline}
|
||||
</span>
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={<span className="min-w-0 truncate">{entry.messageHeadline}</span>}
|
||||
/>
|
||||
<TooltipPopup side="top">{entry.messageHeadline}</TooltipPopup>
|
||||
</Tooltip>
|
||||
<span className="ml-auto shrink-0 font-mono text-xs text-muted-foreground">
|
||||
{entry.oid.slice(0, 7)}
|
||||
</span>
|
||||
@@ -1264,9 +1267,14 @@ export function PullRequestCodeTab({
|
||||
<div className="max-h-64 space-y-3 overflow-auto px-4 pb-3">
|
||||
{[...orphanFiles].map(([path, threads]) => (
|
||||
<div key={path}>
|
||||
<p className="truncate px-3 text-xs text-muted-foreground" title={path}>
|
||||
{path}
|
||||
</p>
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={
|
||||
<p className="truncate px-3 text-xs text-muted-foreground">{path}</p>
|
||||
}
|
||||
/>
|
||||
<TooltipPopup side="top">{path}</TooltipPopup>
|
||||
</Tooltip>
|
||||
<div className="mt-1 space-y-2">
|
||||
{threads.map((thread) => (
|
||||
<div key={thread.id}>
|
||||
|
||||
Reference in new issue
Block a user