Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
list, then pick with the arrow keys and Enter. Long family names no longer
run under the checkmark.

### Fixed

- **Dragging a footer item in Settings keeps its shape.** The chip under the pointer
stays on one line at its own size instead of wrapping into a taller, narrower block.

## [0.62.1] - 2026-10-08

### Fixed
Expand Down
11 changes: 9 additions & 2 deletions frontend/src/components/settings/FooterLayoutEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
type FooterZone,
} from "@/lib/footer-layout"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { Button, buttonVariants } from "@/components/ui/button"

const ICONS: Record<FooterItem, LucideIcon> = {
attach: Paperclip,
Expand Down Expand Up @@ -191,7 +191,14 @@ export function FooterLayoutEditor({ layout, disabled, onChange }: FooterLayoutE
</div>
<DragOverlay>
{dragging && (
<span className="flex items-center gap-1.5 rounded-md bg-popover px-2.5 py-1.5 text-xs shadow-md">
// dnd-kit sizes the overlay to the chip it lifted, so it wears the
// chip's own button metrics; any other padding or glyph wraps the reading.
<span
className={cn(
buttonVariants({ variant: "ghost", size: "xs" }),
"rounded-md bg-popover tabular-nums shadow-md ring-1 ring-inset ring-border",
)}
>
<ItemReading id={dragging} />
</span>
)}
Expand Down
Loading