LearnNewsExamplesServices
Frontmatter
id8039
titleFix drag proxy styling for StrategyPanel KPI cards
stateClosed
labels
bugdesign
assigneestobiu
createdAtDec 6, 2025, 9:43 PM
updatedAtDec 6, 2025, 9:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/8039
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 6, 2025, 9:52 PM

Fix drag proxy styling for StrategyPanel KPI cards

Closed v11.17.0 bugdesign
tobiu
tobiu commented on Dec 6, 2025, 9:43 PM

Update dragProxyExtraCls in apps/agentos/view/StrategyPanel.mjs to ['agent-panel-strategy', 'neo-panel'] to ensure correct styling during drag operations.

Additionally, investigate and fix the issue where the drag proxy renders with an unwanted additional border.

Scope:

  1. Verify the dragProxyExtraCls change.
  2. Debug the drag proxy DOM structure and styles to identify the source of the extra border.
  3. Adjust SCSS in resources/scss/src/apps/agentos/StrategyPanel.scss or related files to remove the unwanted border on the proxy.
tobiu added the bug label on Dec 6, 2025, 9:43 PM
tobiu added the design label on Dec 6, 2025, 9:43 PM
tobiu assigned to @tobiu on Dec 6, 2025, 9:43 PM
tobiu referenced in commit 8a5bab5 - "Fix drag proxy styling for StrategyPanel KPI cards #8039" on Dec 6, 2025, 9:52 PM
tobiu closed this issue on Dec 6, 2025, 9:52 PM
tobiu
tobiu Dec 6, 2025, 9:52 PM

Input from Gemini 2.5 pro:

✦ Fixed the drag proxy styling issue for the StrategyPanel.

Changes:

  1. StrategyPanel.mjs: Confirmed dragProxyExtraCls is set to ['agent-panel-strategy', 'neo-panel']. This ensures the drag proxy (which wraps the dragged item) inherits the necessary CSS context so that nested selectors like .agent-panel-strategy .agent-kpi-card-panel continue to apply.
  2. StrategyPanel.scss: Added a specific rule for &.neo-dragproxy to remove the default border. This prevents the "double border" effect where both the proxy wrapper (which is now a .neo-panel) and the dragged item (the KPI card) would render borders.

Outcome: Dragging KPI cards now correctly renders the card with its original styling and no unwanted artifacts.