Open a finished Rule from its Profile card, and drop it from the browser on Log out.

This commit is contained in:
adilallo committed 2026-11-22 17:47:46 -07:00
1 parent db1599123b
commit 942c7cc9de
17 files changed
+280 -14

No files matched your search

+25 -1
View File
@@ -298,6 +298,7 @@ export function RuleView({
<NavigationLink
key={link.id}
{...shared}
className={`${shared.className} pointer-events-auto relative z-10`}
href={link.href}
onClick={(e) => e.stopPropagation()}
/>
@@ -307,6 +308,7 @@ export function RuleView({
<NavigationLink
key={link.id}
{...shared}
className={`${shared.className} pointer-events-auto relative z-10`}
onClick={(e) => {
e.stopPropagation();
link.onClick?.();
@@ -319,7 +321,8 @@ export function RuleView({
const surfaceStyle = surfaceColor
? { backgroundColor: surfaceColor }
: undefined;
const isLinkCard = Boolean(href) && interactiveCard;
const isLinkCard = Boolean(href) && interactiveCard && !hasBottomLinks;
const overlayHref = hasBottomLinks && href ? href : undefined;
const hasCategories = Boolean(categories && categories.length > 0);
const expandedDescriptionFrameClass = [
@@ -610,6 +613,27 @@ export function RuleView({
);
}
if (overlayHref) {
return (
<div
className={`${cardClassName} cursor-pointer`}
style={surfaceStyle}
role="article"
>
<NextLink
href={overlayHref}
className="absolute inset-0 z-0 rounded-[inherit]"
aria-label={ariaLabel}
/>
<div
className={`relative z-[1] flex w-full flex-col items-start pointer-events-none ${cardGap}`}
>
{cardBody}
</div>
</div>
);
}
return (
<div
className={cardClassName}