You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cb3b93e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(search): prioritize actions and prevent palette clipping (#6816)
* fix(search): show new chat first for chats
* fix(search): prioritize exact blocks on workflow editor
* fix(search): keep the command palette inside small viewports
The palette dialog was a fixed 500px box centered over the content area
(offset right by the sidebar, and the panel on the canvas), so narrow
windows pushed it past the right edge — clipping the Ask Sim adornment
and the empty state. Its 448px list could also extend below the fold on
short windows, where cmdk aligns the selected row against the off-screen
bottom edge: the selection parked below the viewport and held arrow keys
juddered rows against an edge the user could not see.
Clamp the centered left position to a 16px gutter, shrink the width once
the viewport is narrower than the dialog plus gutters, and cap the list
height so the whole dialog stays on-screen.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(search): stop clipping the first glyph in the command search input
Inputs clip glyph ink at their padding box, and the palette input had no
left padding, so a leading glyph whose ink reaches its pen origin (the
brand font's j) lost its left edge — worst at low browser zoom, where
the clip boundary snaps to whole device pixels and eats up to 2 CSS px
of the first letter. Give the input 3px of left ink clearance with a
compensating negative margin so the text keeps its exact alignment with
the result-row titles.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(search): give the first glyph real ink clearance via text-indent
Chrome clips input text at the content box, not the padding box, so the
previous padding-based clearance was dead space — glyph ink still
started exactly at the clip edge, and the first letter kept losing its
left edge under low browser zoom. text-indent starts the text 3px
inside the clip region, which is clearance the renderer can actually
paint into; the compensating negative margin keeps the text aligned
with the result-row titles as before.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(search): stabilize command input glyph clearance
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-chrome/command-chrome.test.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/command-chrome/command-chrome.tsx
0 commit comments