fix(web): pad the command palette search field and center the account row (UF-047, UF-048)
The ⌘K search input had no padding but drew its own focus ring with an offset, so the ring ran right against the text. It now has inner padding and no offset, so the ring reads as the field's outline; the palette test checks both. The sidebar account row had 8px above its content and 22px below, because its bottom padding added to the nav's own. It now has 14px above and none below, matching the nav padding underneath.
This commit is contained in:
@@ -236,7 +236,9 @@ const Sidebar = ({
|
||||
data-testid="sidebar-user"
|
||||
aria-label="Account and settings"
|
||||
onClick={() => navigate("/settings")}
|
||||
className="mt-1.5 flex items-center justify-center gap-2.5 border-t border-[var(--line-soft)] px-2.5 py-2 text-left lg:justify-start"
|
||||
// pt-3.5 matches the nav's own bottom padding, so the row sits centered
|
||||
// between the divider and the window edge.
|
||||
className="mt-1.5 flex items-center justify-center gap-2.5 border-t border-[var(--line-soft)] px-2.5 pb-0 pt-3.5 text-left lg:justify-start"
|
||||
>
|
||||
<span className="grid h-7 w-7 shrink-0 place-items-center rounded-full bg-[var(--honey)] text-[11px] font-bold text-[#1a1407]">
|
||||
{initialOf(userName, "W")}
|
||||
|
||||
Reference in New Issue
Block a user