Repository navigation
fix(ui): compact, end-aligned anchored confirmations - #3849
Merged
Merged
Conversation
Anchored confirmations reused the modal dialog title (24px bold, single line with a fade), so long item names were cut off and the title overpowered the popover. They also aligned their left edge to the trigger, so popovers opened from trailing actions spilled to the right. - Anchored ConfirmDialog titles use the section heading scale and wrap up to three lines; DialogTitle gains an optional `lines` prop. - Anchored surfaces get even 16px padding and small action buttons. - useAnchoredLayer accepts a logical `align` (start by default, RTL aware); anchored Dialogs align their end edge with the trigger. Menus, Select and Combobox keep start alignment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Anchored (beside-the-trigger) confirmation popovers now read as compact questions and line up with the action that opened them.
DialogTitlegains an optionallinesprop.useAnchoredLayeraccepts a logicalalign(startby default, RTL aware). AnchoredDialogs useend, so the popover's right edge meets the trigger's right edge instead of spilling right from its left edge. Menus, Select and Combobox keep start alignment.Type and Areas
Type: UI/UX
Areas: design system (
@openbitfun/ui), web UIMotivation / Impact
Delete confirmations for scheduled tasks, model configurations and other trailing actions looked unbalanced: an oversized truncated title, and a popover extending away from the button that opened it. All anchored confirmations (
confirmDanger/confirmDialogwith an anchor and directConfirmDialog anchor=...uses) pick up the new layout. Modal confirmations are unchanged.Verification
pnpm --dir design-system run build:uinode --test design-system/packages/ui/tests/{dialog,confirm-dialog,select,overlay-kernel,registry}.test.mjs: 22 passedpnpm --dir src/web-ui exec vitest run src/infrastructure/confirm-dialog src/shared/ui/ConfirmationInteraction.test.tsx: 20 passed (position expectations updated for end alignment)pnpm --dir src/web-ui exec tsc --noEmit -p .: passedpnpm run check:repo-hygiene: passedNot checked visually in the running desktop app. Layout-only change; no remote scenario behavior is affected.
Reviewer Notes
Near the left viewport edge the popover is still clamped inside the window, and it still flips above the trigger near the bottom edge.
Checklist