Open rewind in an anchored dropdown menu
Replace the full-screen rewind sheet with a dropdown anchored to the trigger, with a muted warning header and inline pending state on the chosen action. Also realign the user message action row so timestamp, rewind, and copy share a single 24px baseline — the copy button was inheriting assistant-footer paddings that pushed the row taller than the icons.
This commit is contained in:
@@ -68,7 +68,6 @@ test.describe("Rewind sheet", () => {
|
||||
await page.getByTestId("rewind-menu-trigger").first().click();
|
||||
const rewindSheet = page.getByTestId("rewind-menu-content");
|
||||
await expect(rewindSheet).toBeVisible();
|
||||
await expect(rewindSheet.getByText("Rewind to this message", { exact: true })).toBeVisible();
|
||||
await expect(
|
||||
rewindSheet.getByText("This action cannot be undone", { exact: true }),
|
||||
).toBeVisible();
|
||||
@@ -149,7 +148,6 @@ test.describe("Rewind sheet", () => {
|
||||
await page.getByTestId("rewind-menu-trigger").first().click();
|
||||
const rewindSheet = page.getByTestId("rewind-menu-content");
|
||||
await expect(rewindSheet).toBeVisible();
|
||||
await expect(rewindSheet.getByText("Rewind to this message", { exact: true })).toBeVisible();
|
||||
await expect(
|
||||
rewindSheet.getByText("This action cannot be undone", { exact: true }),
|
||||
).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user