fix(app): float composer track pills consistently
Keep agent and task pills as a transparent transcript overlay while measuring their rendered height for scroll-tail clearance. Share geometry and spacing with the import-session pill so borders, type, corners, and composer separation match across platforms.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveBottomOverlayTailInset } from "./bottom-overlay-inset";
|
||||
|
||||
describe("resolveBottomOverlayTailInset", () => {
|
||||
it("adds only the space missing after existing footer clearance", () => {
|
||||
expect(
|
||||
resolveBottomOverlayTailInset({
|
||||
overlayHeight: 44,
|
||||
clearance: 12,
|
||||
existingTailSpacing: 24,
|
||||
}),
|
||||
).toBe(32);
|
||||
});
|
||||
|
||||
it("reserves the full overlay and clearance when the tail has no spacing", () => {
|
||||
expect(
|
||||
resolveBottomOverlayTailInset({
|
||||
overlayHeight: 44,
|
||||
clearance: 12,
|
||||
existingTailSpacing: 0,
|
||||
}),
|
||||
).toBe(56);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user