mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
fix(agent-v2): restore keyboard access to row actions (#38792)
This commit is contained in:
parent
4efab8d7a3
commit
6e59c723c9
@ -24,7 +24,7 @@ export function ConfigureSectionConfigurableItem({
|
||||
const hasBadge = badge !== undefined && badge !== null
|
||||
|
||||
return (
|
||||
<div className="group flex min-h-8 items-center gap-1 overflow-hidden rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg py-1.5 pr-1.5 pl-2 shadow-xs shadow-shadow-shadow-3 focus-within:border-components-panel-border focus-within:bg-components-panel-on-panel-item-bg-hover focus-within:shadow-sm hover:border-components-panel-border hover:bg-components-panel-on-panel-item-bg-hover hover:shadow-sm">
|
||||
<div className="group relative flex min-h-8 items-center gap-1 overflow-hidden rounded-lg border-[0.5px] border-components-panel-border-subtle bg-components-panel-on-panel-item-bg py-1.5 pr-1.5 pl-2 shadow-xs shadow-shadow-shadow-3 focus-within:border-components-panel-border focus-within:bg-components-panel-on-panel-item-bg-hover focus-within:shadow-sm hover:border-components-panel-border hover:bg-components-panel-on-panel-item-bg-hover hover:shadow-sm">
|
||||
<div className="flex min-w-0 flex-1 items-center gap-2 py-0.5 pr-1">
|
||||
{icon}
|
||||
<span className="min-w-0 truncate system-sm-medium text-text-primary">
|
||||
@ -32,7 +32,7 @@ export function ConfigureSectionConfigurableItem({
|
||||
</span>
|
||||
</div>
|
||||
{!readOnly && (
|
||||
<div className="hidden shrink-0 items-center gap-1 group-focus-within:flex group-hover:flex">
|
||||
<div className="pointer-events-none absolute top-1/2 right-1.5 flex -translate-y-1/2 items-center gap-1 bg-components-panel-on-panel-item-bg-hover opacity-0 group-focus-within:pointer-events-auto group-focus-within:opacity-100 group-hover:pointer-events-auto group-hover:opacity-100">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={editAriaLabel}
|
||||
@ -52,7 +52,7 @@ export function ConfigureSectionConfigurableItem({
|
||||
</div>
|
||||
)}
|
||||
{hasBadge && (
|
||||
<span className="shrink-0 rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-1 py-0.5 system-2xs-medium-uppercase text-text-tertiary group-focus-within:hidden group-hover:hidden">
|
||||
<span className="shrink-0 rounded-[5px] border border-divider-deep bg-components-badge-bg-dimm px-1 py-0.5 system-2xs-medium-uppercase text-text-tertiary group-focus-within:opacity-0 group-hover:opacity-0">
|
||||
{badge}
|
||||
</span>
|
||||
)}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user