Raise delete strike overlay above row content
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 19s
Build and Deploy Gateway / deploy (push) Successful in 6s

This commit is contained in:
2026-07-12 00:14:54 +03:00
parent 56304514ff
commit d49a1f6837
4 changed files with 18 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
export const HARBOR_VERSIONS = Object.freeze({
macClient: '0.6.7',
gatewayClient: '0.6.6',
macClient: '0.6.9',
gatewayClient: '0.6.8',
gatewayBackend: '0.6.0',
});

View File

@@ -392,11 +392,6 @@ function LocalRulesPanel({
style={{ viewTransitionName: rule.removing ? 'none' : rule._key }}
inert={rule.removing ? true : undefined}
>
<span
className="client-delete-strike"
aria-hidden="true"
onAnimationEnd={() => onRemoveComplete(rule._key)}
/>
<button
className="client-local-rule-enabled"
type="button"
@@ -436,6 +431,11 @@ function LocalRulesPanel({
>
×
</button>
<span
className="client-delete-strike"
aria-hidden="true"
onAnimationEnd={() => onRemoveComplete(rule._key)}
/>
</div>
);
})}

View File

@@ -960,10 +960,11 @@ p {
}
.client-delete-strike {
--client-delete-strike-y: 50%;
position: absolute;
inset: 0;
z-index: 20;
background: radial-gradient(ellipse at center, oklch(0.68 0.15 28 / 0.3) 0%, oklch(0.68 0.15 28 / 0.12) 36%, transparent 74%);
z-index: 100;
background: radial-gradient(ellipse at 50% var(--client-delete-strike-y), oklch(0.68 0.15 28 / 0.3) 0%, oklch(0.68 0.15 28 / 0.12) 36%, transparent 74%);
opacity: 0;
pointer-events: none;
transform: scaleX(0);
@@ -975,7 +976,7 @@ p {
position: absolute;
left: 0;
right: 0;
top: calc(50% - 2px);
top: calc(var(--client-delete-strike-y) - 2px);
height: 4px;
background: oklch(0.68 0.15 28);
clip-path: polygon(0 50%, 18% 40%, 50% 28%, 82% 40%, 100% 50%, 82% 60%, 50% 72%, 18% 60%);
@@ -986,6 +987,11 @@ p {
animation: client-delete-strike 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.client-deletable-row.is-removing > :not(.client-delete-strike) {
position: relative;
z-index: 0;
}
.client-local-rule-enabled {
width: 24px;
height: 32px;